software-packaging

How to edit a wheel package (.whl)?

孤街醉人 提交于 2021-02-19 01:34:27
问题 I have a python wheel package, when extracted I find some python code, I'd like to edit this code and re-generate the same .whl package again and test it to see the edits .. How do I do that? 回答1: You usually don't. Normally you get the source package instead of the wheel (or use development mode to install the package in editable form) and rebuild the wheel from that, e.g. by running python setup.py bdist_wheel . Have a look at https://packaging.python.org/distributing/ for a lot of

Debian packaging: deploying files to the user home directory

别来无恙 提交于 2020-08-04 06:01:28
问题 I use Debhelper to create Debian packages. To deploy files and directories, I use the debian/install and debian/dirs files. Now I would like my package to deploy the default user configuration file to $HOME/.mypackagerc (just like .bashrc and friends). Does Debhelper provide a way to do this, or should I just: Do it in postinst script Or even do this in my program, at first execution 回答1: You should do it in your own program. You can't get debhelper to do this. A postinst script may be able

Debian packaging: deploying files to the user home directory

◇◆丶佛笑我妖孽 提交于 2020-08-04 06:01:06
问题 I use Debhelper to create Debian packages. To deploy files and directories, I use the debian/install and debian/dirs files. Now I would like my package to deploy the default user configuration file to $HOME/.mypackagerc (just like .bashrc and friends). Does Debhelper provide a way to do this, or should I just: Do it in postinst script Or even do this in my program, at first execution 回答1: You should do it in your own program. You can't get debhelper to do this. A postinst script may be able

How to static linking to glibc in cmake

北慕城南 提交于 2020-05-27 05:15:00
问题 I'm trying to build a package from Fedora that can run on a RedHat 6 machine. So I need to build and static linking with some library that does not exist in RedHat machine. I found that I can you -static-libgcc or -static-libstdc++ to link with static version of standard library but I don't know how to do with glibc . How can I link to static library of glibc with CMake? Sorry for my bad English. 回答1: Since -static-libgcc and -static-libstdc++ are linker options, the correct way to set them

What is the project directory structure for a standalone Java SE application?

给你一囗甜甜゛ 提交于 2019-12-09 09:12:00
问题 What is the standard project directory structure of a standalone Java SE (Command Line based) application? src folder will contain all my .java files in properly organized packages. Other than that I have bin folder which will contain my .class files. I've Properties files and XML configuration files in my project. In which directory should I place them? Should I create a package named com.myproject.config and place all the .xml config files in that? I want the dependent jars to be packaged

Autoconf subdirectories with subpackages depending on each other?

北慕城南 提交于 2019-12-05 22:38:56
问题 I've got a large project on my hand (master) that is split into several components (liba, b, c, d) to ease building and maintenance. When building the whole package, all of the subcomponents must be built in sequence, and some of these packages depend upon each other. In more explicit terms, liba is a prerequisite for b, c and d, and the presence of liba is checked by the configure script. This check is definitely necessary to give user-friendly error messages when building the b distribution

Autoconf subdirectories with subpackages depending on each other?

主宰稳场 提交于 2019-12-04 04:38:05
I've got a large project on my hand (master) that is split into several components (liba, b, c, d) to ease building and maintenance. When building the whole package, all of the subcomponents must be built in sequence, and some of these packages depend upon each other. In more explicit terms, liba is a prerequisite for b, c and d, and the presence of liba is checked by the configure script. This check is definitely necessary to give user-friendly error messages when building the b distribution on its own. However, when building the master package and all its subpackages, liba is built as a

How to extract contents from 'Payload' file in a apple macOS update package?

自作多情 提交于 2019-11-29 01:49:54
I am extracting macOS sierra update package - macOSUpd10.12.1.pkg using following command to /tmp/macosupd directory. pkgutil --expand /Volumes/macOS\ Sierra\ Update/macOSUpd10.12.1.pkg /tmp/macosupd I can see following packages are bundled inside the metapackage. -rwxr-xr-x 1 Distribution drwxr-xr-x 6 FirmwareUpdate.pkg drwxr-xr-x 5 FullBundleUpdate.pkg drwxr-xr-x 36 Resources drwxr-xr-x 6 macOSUpd10.12.1.pkg I am not able to extract contents of Payload file. For example when i try to extract the Payload of macOSUpd10.12.1.pkg, i get following error message: with tar: tar -xvf macOSUpd10.12.1

How to extract contents from 'Payload' file in a apple macOS update package?

喜欢而已 提交于 2019-11-27 14:49:41
问题 I am extracting macOS sierra update package - macOSUpd10.12.1.pkg using following command to /tmp/macosupd directory. pkgutil --expand /Volumes/macOS\ Sierra\ Update/macOSUpd10.12.1.pkg /tmp/macosupd I can see following packages are bundled inside the metapackage. -rwxr-xr-x 1 Distribution drwxr-xr-x 6 FirmwareUpdate.pkg drwxr-xr-x 5 FullBundleUpdate.pkg drwxr-xr-x 36 Resources drwxr-xr-x 6 macOSUpd10.12.1.pkg I am not able to extract contents of Payload file. For example when i try to