packaging

Package that downloads data from the internet during installation

懵懂的女人 提交于 2019-12-07 01:40:24
问题 Is anyone aware of a package that downloads a dataset from the internet during the installation process and then prepares and saves it so that it is available when loading the package using library(packageName) ? Are there any drawbacks in this approach (besides the obvious one that package installation will fail if the data source is unavailable or the data format has changed)? EDIT : Some background. The data is three tab-separated files in a ZIP archive, owned by federal statistics and

Why would one use an egg over an sdist?

烂漫一生 提交于 2019-12-06 21:25:47
About the only reason I can think of to distribute a python package as an egg is so that you can not include the .py files with your package (and only include .pyc files, which is a dubious way to protect your code anyway). Aside from that, I can't really think of any reason to upload a package as an egg rather than an sdist. In fact, pip doesn't even support eggs. Is there any real reason to use an egg rather than an sdist? One reason: eggs can include compiled C extension modules so that the end user does not need to have the necessary build tools and possible additional headers and

How to pack a SQLite database into a jar?

白昼怎懂夜的黑 提交于 2019-12-06 16:44:35
I've got a Java project, which uses a small SQLite database. Now I want to create an executable jar File, with the Database file and the driver ( sqlitejdbc-v056 ) inside to have a single, all containing package. My package structure looks like this: Bank | | +---src | ... | +---bin | ... | +---data | bank_database.db | +---img | ajax-refresh-icon.gif | +---doc | Datenbankschema.uxf | \---resources sqlitejdbc-v056.jar I access the DB with this small Java class: package model; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class DBHandle {

Problem in Ruby Shoes packaging?

牧云@^-^@ 提交于 2019-12-06 12:43:29
问题 The (Ruby Shoes) packaging solution from Hacketyhack.net doesnt work. Can anyone point me to an alternative? 回答1: There is a shoes/shoes github project that hosts the latest binaries. However, as of (Sept 10, 2009) packaging requires a few patches that remove the dependencies on _why's no longer existent server. I was able to find pack.rb in the Shoes application folder and replace it with this version of pack.rb After that, my packager was able to package basic applications. 回答2: There's a

how to package images into a Runnable JAR

若如初见. 提交于 2019-12-06 12:36:07
Before ... (question deleted) I'm trying to make a runnable jar from a Swing project. I add some images in /img folder. Previous version didn't have it and runnable jar was good through export in Eclipse. Now I guess something is going wrong. In runnable jar I added at same level of main package and META-INF folder, this img folder but it seems GUI does not appear. Some process before building GUI went good so main class seems ok. Any suggestion!? Thanks. Comments : Run it on the command line and post the error you get. – Kevin Any suggestion!?. Yes. post the structure of the jar file, the

How can I package my python application with external python libraries?

*爱你&永不变心* 提交于 2019-12-06 10:55:33
问题 I hope my title was clear. I'm using wxpython for making a GUI and I want it to be able to be opened, extracted, and have it work on all operating systems. I was able to include twill by finding a folder called twill inside the twill archive, which worked fine. However, I'm unable to figure out how to correctly package wxpython. EDIT: I'm not using either. py2exe is only for windows, and bbfreeze doesn't seem to work on mac (so it's not cross platform) 回答1: Unfortunately, there's just no one

'+' packaging or modular programming in matlab: analog of python's import?

∥☆過路亽.° 提交于 2019-12-06 07:04:01
问题 I come with the background in languages like Java or Python where modular programming is enabled by packaging system and import directive (aka namespace aliasing). Historically MATLAB's approach to resolve problems like naming conflicts boils down to setting/playing with MATLABPATH, renaming/extending identifiers with prefixes, etc. So far I have been successfully playing with native MATLAB packaging by prepending plus sign "+" before the folder name (MATLAB notation for package also see here

GenJar replacement or update?

女生的网名这么多〃 提交于 2019-12-06 06:22:52
"GenJar is a specialized Ant task that builds jar files based on class dependencies rather than simply the contents of a directory" ( http://genjar.sourceforge.net/ ) It is really useful, but the project seems to be un-active since "2003-03-06 GenJar 1.0.2 is released". Is there a new tool for that we should use now? Thanks genjar2 seems to be the "official" replacement: http://code.google.com/p/genjar2/ How about maven http://maven.apache.org/ ? 来源: https://stackoverflow.com/questions/2400249/genjar-replacement-or-update

Android Glide library NoClassDefFoundError

∥☆過路亽.° 提交于 2019-12-06 04:48:22
Am i using the Glide library wrongly? what could be the problem? protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ImageView iv = (ImageView) findViewById(R.id.imageView1); Glide.with(this).load(R.drawable.salads_caesar_salad).into(iv); } If your code compiles fine it's highly likely you have the right dependencies on the compile classpath. If you use Android Studio/Gradle it's possible that ProGuard somehow strips the Glide class for whatever reason, but it really shouldn't because you're actually using it. The

What is a good way to package django apps?

依然范特西╮ 提交于 2019-12-06 03:58:21
问题 I have a django project which is installed by customers on their servers. I've got a few more apps which are optional plugins of functionality that can be installed/uninstalled. I'd like a simple way to package these plugin apps to make the install/uninstall painless. I dont want them to copy the template files to one directory, app to another one, media to a third one and so on. I would prefer that they need not edit settings.py, though its okay if it can't be helped. The ideal situation