packaging

Pack program *and* dynamically loaded files into single executable? (python + pygame, or language agnostic)

拥有回忆 提交于 2019-12-30 14:41:05
问题 There are plenty of great answers to questions about making a standalone executable, but I can't figure out how to pack art assets (or dynamically loaded files) into it as well. Why would I want to do this? Because it would be great to distribute a simple (throw away) game that lives entirely in a single executable with no installer. As far as I can tell from searching, there are two basic approaches. 1) Avoid art assets in favor of content generation. I could have a program that turns a

Pack program *and* dynamically loaded files into single executable? (python + pygame, or language agnostic)

旧城冷巷雨未停 提交于 2019-12-30 14:40:30
问题 There are plenty of great answers to questions about making a standalone executable, but I can't figure out how to pack art assets (or dynamically loaded files) into it as well. Why would I want to do this? Because it would be great to distribute a simple (throw away) game that lives entirely in a single executable with no installer. As far as I can tell from searching, there are two basic approaches. 1) Avoid art assets in favor of content generation. I could have a program that turns a

Pack program *and* dynamically loaded files into single executable? (python + pygame, or language agnostic)

南楼画角 提交于 2019-12-30 14:40:07
问题 There are plenty of great answers to questions about making a standalone executable, but I can't figure out how to pack art assets (or dynamically loaded files) into it as well. Why would I want to do this? Because it would be great to distribute a simple (throw away) game that lives entirely in a single executable with no installer. As far as I can tell from searching, there are two basic approaches. 1) Avoid art assets in favor of content generation. I could have a program that turns a

How to run installed python script?

不打扰是莪最后的温柔 提交于 2019-12-30 06:23:34
问题 I used distutils to install my python package, with this setup.py : import distutils.core args = { 'name' : 'plugh', 'version' : '1.0', 'scripts' : [ "scripts/plugh" ], 'packages': [ "plugh" ], } d = distutils.core.setup( **args ) On linux/mac, it works as expected: % plugh hello world % On windows, the script "plugh" does not run: C:\Python25\Scripts>plugh 'plugh' is not recognized as an internal or external command, operable program or batch file. C:\Python25\Scripts> I found the bug report

How to specify dependency on external C library in .cabal?

蓝咒 提交于 2019-12-30 02:03:26
问题 I maintain a library with FFI bindings on Hackage. So my Haskell library depends on the corresponding C library and its header files. Now I specify the external dependency in the .cabal file like this: PkgConfig-Depends: libfoo >= 1.2 And it works well for me in Linux. However, I have a user of the library who reports, that installing pkg-config on Windows is rather cumbersome, and instead he prefers Includes: foo.h Extra-libraries: foo I'd like my library to be as easy to build as possible,

How to specify dependency on external C library in .cabal?

风流意气都作罢 提交于 2019-12-30 02:03:25
问题 I maintain a library with FFI bindings on Hackage. So my Haskell library depends on the corresponding C library and its header files. Now I specify the external dependency in the .cabal file like this: PkgConfig-Depends: libfoo >= 1.2 And it works well for me in Linux. However, I have a user of the library who reports, that installing pkg-config on Windows is rather cumbersome, and instead he prefers Includes: foo.h Extra-libraries: foo I'd like my library to be as easy to build as possible,

Packaging a Jython program in an executable jar

落爺英雄遲暮 提交于 2019-12-29 19:14:42
问题 I am trying to package a jython program into an executable jar which the user can simply double-click to run without installing jython ahead of time. Ultimately, I would like to include an additional library which I wrote with the jar, but at the moment I am just trying to package a simple program and have it run from the jar. I have tried following the jar instructions in the "Using the Jar Method" section here: Jython FAQ: Using the Jar Method I have also looked at slides 25-28 here: Jython

How should I structure a Python package that contains Cython code

耗尽温柔 提交于 2019-12-29 10:03:25
问题 I'd like to make a Python package containing some Cython code. I've got the the Cython code working nicely. However, now I want to know how best to package it. For most people who just want to install the package, I'd like to include the .c file that Cython creates, and arrange for setup.py to compile that to produce the module. Then the user doesn't need Cython installed in order to install the package. But for people who may want to modify the package, I'd also like to provide the Cython

Reference a binary-component to js-ctypes

…衆ロ難τιáo~ 提交于 2019-12-28 18:37:07
问题 I have registered a binary component in my chrome.manifest : binary-component components/linux/myLib.so abi=Linux_x86-gcc3 Now I want to pass its path to ctypes.open() . My question is: how do I reference the binary component so I can pass it to ctypes.open() ? 回答1: The binary components listed in chrome.manifest should be XPCOM components. Yours on the other hand is a regular library, no need to list it in the manifest - it is a very "manual" approach instead. Your code needs to check

How can I make my ad hoc iPhone application's icon show up in iTunes?

守給你的承諾、 提交于 2019-12-28 07:39:11
问题 I've got an iPhone app with icon file Icon.png. This icon shows up properly when the app is on the phone itself, but it doesn't show up in the applications pane in iTunes. What do I need to do to get it to show up properly? 回答1: The cleanest way to do this is described in the official Apple documentation, in a section called Publishing Applications for Testing. Below is the exact instructions given to you on that page: The iTunes artwork your testers see should be your application’s icon.