packaging

Packaging wearable apps

て烟熏妆下的殇ゞ 提交于 2019-12-10 17:26:59
问题 I'm in the last stage of developing a watchface service for the android wear devices. The problem is the following: Every time i try to sign my app, two files are being generated: wear-release.apk and mobile-release.apk , there is no other apk. Shouldnt the apk name be my Packagename of the projectdirectory? -Because i tried opening both files with my compatible Smartphone (with a weardevice attached), which always ends instantly in a phrasing error. Thinngs i have noticed: There is no

Prevent creation of conffiles

喜你入骨 提交于 2019-12-10 15:35:49
问题 I'm trying to build a package which has some files under /etc that are not configuration. They are included in the conffiles automatically even if I create an empty package.conffiles in the debian directory. How can I stop dh_installdeb from doing that? 回答1: Originally, this answer suggested providing your own debian/conffiles files only listing actual configuration files to be installed. Apparently that only serves to add more configuration files but won't override the whole conffiles file.

Including data files with setup.py

假如想象 提交于 2019-12-10 15:27:04
问题 I'm having trouble including data files in my setup.py script. My package is setup as follows: my_package/ setup.py MANIFEST.in my_package/ __init__.py access_data.py data_files/ my_data_file.csv I want to include the my_data_file.csv file when installing so that it can be read by access_data.py . To do so I used the package_data keyword in setuptools : setup(..., packages=['my_package'], package_data={'my_package': ['./my_package/data_files/my_data_file.csv']}, include_package_data=True ) I

Package and run a Java application with spring dependencies

让人想犯罪 __ 提交于 2019-12-10 14:43:13
问题 I built a stand-alone Java application that has a bunch of dependencies (Apache Commons libs, etc) as well as a dependency on the Spring framework, which in turn has a bunch of dependencies. I built this in Eclipse, where it runs fine. Now I need to deploy it to production and so I'm trying to figure out the best way to package it with all dependencies and also how to even invoke the thing (it will be invoked from the command line). The brute-force way would be to export my project as a jar,

Packages “within” modules

北城余情 提交于 2019-12-10 14:32:12
问题 I have a growing number of scripts that make up a program I am writing and decided it was time to clean up my source tree and package them up correctly. I'm sure this is a simple question but I can't find out how to do it. If I have a group of modules, that fit together, but one should be a top-level module and the others should be prefixed by the module name but actually go into lower level packages, how can I do it. For example say I wanted to be able to import mystuff , and get all mystuff

Packaging a Python library with an executable

拜拜、爱过 提交于 2019-12-10 13:25:27
问题 I just finished a module and want to package it. I've read the documentation and this question packaging a python application but I am not sure about how to proceed when I don't have a package to import but a script to launch instead. The project looks like that: Project/ |-- README |-- requirement.txt |-- driver.py |-- run.py |-- module_1 | |-- __init__.py | |-- class_1.py | |-- class_2.py |-- module 2 |-- |-- __init__.py |-- |-- class_1.py |-- |-- class_2.py In order to launch the tool I do

Combining module files in Python

萝らか妹 提交于 2019-12-10 13:22:51
问题 Is there a way to put together Python files, akin to JAR in Java? I need a way of packaging set of Python classes and functions, but unlike a standard module, I'd like it to be in one file. 回答1: Take a look at Python Eggs: http://peak.telecommunity.com/DevCenter/PythonEggs Or, you can use regular zips: http://docs.python.org/library/zipimport.html 回答2: After looking for a solution to the same problem, I ended up writing a simple tool which combines multiple .py files into one: PyBreeder It

how to package images into a Runnable JAR

无人久伴 提交于 2019-12-10 11:23:35
问题 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

Packaging to use to deploy cross-platform?

北慕城南 提交于 2019-12-10 10:35:44
问题 On windows applications are typically packaged as MSI, on Redhat Linux as RPM, what would be a best open source packaging method that could be used to deploy applications to all platforms including different flavors of unix and windows? Contents would include exes, unix binaries, java jar files, user data, even database scripts to be run. (I recognize contents would vary per destination OS, ie. binaries would be different, win exe vs unix binary etc, but for example config files may be the

How to create a single application from multiple Android projects

 ̄綄美尐妖づ 提交于 2019-12-09 20:16:38
问题 I am developing a project where i have to create several Android projects but at the end i have to package all the projects in to one single application.is there anyway to do it? Thanks !!! 回答1: Create Multiple APKs, and remove the Launcher category from the activities that you don't need to show up in the apps list. For one of the project, there would be a launcher. But, the problem with this approach is that, users will have to install all the apks or, you can make your main apk handle this