packaging

Running Java from an OSX “.app” bundle causes “Error -10810”

我的未来我决定 提交于 2019-12-18 18:40:26
问题 This was tested on OSX Mavericks through virtual box, and on Yosemite on a macbook. I have a simple executable jar named "HelloWorld.jar". I am trying to create a .app bundle for this java application. (Obviously, my actual program is more complex, but I have whittled it down to the barest problems). CASE 1 - SIMPLE BUNDLE WITHOUT JAVA - WORKS COMPLETELY Step 1 - Test at Console - Works At the console I type echo "Hello World (no java)" > /Users/josh/Desktop/test-output.txt I view test-output

How to access Qt resource data from non-Qt functions

流过昼夜 提交于 2019-12-18 15:18:26
问题 As I understand it, the way to packages non-code resources such as data files in a Qt app is using the resource system. However, what if I want to access a resource using a non-Qt function. For example, I may have a .txt or .csv file with some application data that I want to accessing using ifstream. It doesn't seem to work to use the ": ..." syntax in place of a filename for non-Qt functions and classes. Is there a separate workflow for packaging data used by non-Qt functions in an app? I'm

Obfuscating python bytecode through interpreter mutation

强颜欢笑 提交于 2019-12-18 11:59:49
问题 Actually, Dropbox made it very well, they were able to secure their desktop application made in python; I researched this a lot, but no good solution better than obfuscation, which is not very secure way to go, and you will end up seeing your code uploaded somewhere. I listened to a session made by Giovanni Bajo (the PyInstaller founder), he said Dropbox does this: Bytecode-scrambling by recompiling your CPython's interpreter, and by this, standard CPython interpreter will not be able to run

How to remotely update Python applications

别等时光非礼了梦想. 提交于 2019-12-18 11:47:26
问题 What is the best method to push changes to a program written in Python? I have a piece of software that is written in Python that will regularly be updated. What would be the best way to do this? All the machines will have Windows 7. Also, excuse the ambiguity of my question. This will be my first time having to implement an updating procedure. Feel free to mention specifics you would like me ot add. 回答1: If you're not already packaging your program with InnoSetup, I strongly recommend you

log4j configuration file in a multi-module Maven project

我只是一个虾纸丫 提交于 2019-12-18 11:32:39
问题 I am working on a multi-module Maven project, whose structure is like this: war-module jar-module The war-module depends on the jar-module, and will add the jar artifact into the webapp's lib directory after packaging. And both the war-module and jar-module use Apache log4j for logging, and share the same log4j configuration file (log4j.xml), which locates in jar-module project at present. And this log4j.xml will be packaged into jar-module.jar file, however, I would like to make it into WEB

Shared library dependencies with distutils

ぃ、小莉子 提交于 2019-12-18 10:54:32
问题 I'm a newbie to distutils and I have a problem that really has me stuck. I am compiling a package that requires an extension, so I make the extension thus: a_module = Extension( "amodule", ["initmodule.cpp"], library_dirs=libdirs, extra_objects = [ "unix/x86_64/lib/liba.so" "unix/x86_64/lib/lib.so", "unix/x86_64/lib/libc.so"], ) I then run the setup method: setup(name="apackage", version="7.2", package_dir = {'':instdir+'/a/b/python'}, packages=['apackage','package.tests'], ext_modules=[hoc

Adding folder in eclipse in src directory without making it package

霸气de小男生 提交于 2019-12-18 10:37:24
问题 While creating one folder in src directory in one project in eclipse, it makes that folder a package. Is there any way to avoid this folder from automatically being a package? e.g., I add main folder in src directory. I don't want it to become a package. How can I do this? Suppose I add folders in this manner: src/main/org/apache. I don't want main.org.apache to be a package, instead, I want the packaging to start from org. (i.e., org.apache). 回答1: Eclipse forces you distinguish between

“setup.py upload” is failing with “Upload failed (401): You must be identified to edit package information”

冷暖自知 提交于 2019-12-18 10:26:51
问题 When running.. python setup.py sdist register upload ..I get the following output: running register We need to know who you are, so please choose either: 1. use your existing login, 2. register as a new user, 3. have the server generate a new password for you (and email it to you), or 4. quit Your selection [default 1]: 1 Username: example Password: ... Registering mypackage to http://pypi.python.org/pypi Server response (200): OK I can store your PyPI login so future submissions will be

packaging common python namespaces

左心房为你撑大大i 提交于 2019-12-18 10:24:38
问题 I'm looking to package and upload a library I have to PyPI in the next few days, but I'm a little unsure about my approach to the namespace. I have a few otherwise unrelated projects with a similar approach and wanted to give them all the same namespace. For example: Library 1 namespace: abc.seo Library 2 namespace: abc.ajax Library 3 namespace: abc.ecommerce etc The problem is that I'm not sure if it's possible for two separate packages (eg eggs) to co-exist with the same parent namespace.

FileNotFoundError: [Errno 2] when packaging for PyPI

喜欢而已 提交于 2019-12-18 09:13:47
问题 I have uploaded a simple python package in https://test.pypi.org. When I download this with pip and try yo run I get FileNotFoundError: [Errno 2] File b'data/spam_collection.csv' does not exist: b'data/spam_collection.csv' . Earlier I had issues with uploading the csv file when packaging. See my question in Could not upload csv file to test.pypi.org. Now after installing the package with pip I run pip show -f bigramspamclassifier . I get the csv file listed. Therefore, I believe the file has