Questions tagged [packaging]

Packaging is a configuration management process involved with capturing the knowledge needed to install or uninstall software on a target system.

Packaging is a configuration management process involved with capturing the knowledge needed to install or uninstall software on a target system. This involves describing where the software and data should be installed on the target system, as well as any preprocessing or post-processing activities that need to be carried out when installing or uninstalling.

Resources:

  • RPM - The Red Hat Package Manager
  • APT - Debian's Advanced Package Tool
  • PyPI - The Python Package Index
  • Django Packages - Index of Django Packages
1933 questions
43
votes
2 answers

How can I include package_data without a MANIFEST.in file?

How can I include package_data for sdist without a MANIFEST.in file? My setup.py looks like this: import setuptools setuptools.setup( name='foo', version='2015.3', license='commercial', packages=setuptools.find_packages(), …
guettli
  • 25,042
  • 81
  • 346
  • 663
43
votes
1 answer

What's the best way to distribute python command-line tools?

My current setup.py script works okay, but it installs tvnamer.py (the tool) as tvnamer.py into site-packages or somewhere similar.. Can I make setup.py install tvnamer.py as tvnamer, and/or is there a better way of installing command-line…
dbr
  • 165,801
  • 69
  • 278
  • 343
43
votes
9 answers

How do I package an existing VM that was not created using vagrant up command?

I installed a VirtualBox and then installed a Ubuntu 12.10 Server Base OS in it. I have installed all kinds of php packages and other packages in it. My friends recommended me to use Vagrant so I can share my setup with my team mates easily. Because…
Kim Stacks
  • 10,202
  • 35
  • 151
  • 282
43
votes
2 answers

Setting up setup.py for packaging of a single .py file and a single data file without needing to create any folders

Project tree: $. ├── happy_birthday-art.txt ├── happy_birthday.py ├── MANIFEST.in ├── README.rst └── setup.py setup.py from setuptools import setup setup( name='Happy_birthday', py_modules=['happy_birthday'], …
Bentley4
  • 10,678
  • 25
  • 83
  • 134
42
votes
5 answers

Packaging Go application for Debian

How can I put my Go binary into a Debian package? Since Go is statically linked, I just have a single executable--I don't need a lot of complicated project metadata information. Is there a simple way to package the executable and resource files…
weberc2
  • 7,423
  • 4
  • 41
  • 57
40
votes
4 answers

Can we shed some definitive light on how python packaging and import works?

I had my fair chance of getting through the python management of modules, and every time is a challenge: packaging is not what people do every day, and it becomes a burden to learn, and a burden to remember, even when you actually do it, since this…
Stefano Borini
  • 138,652
  • 96
  • 297
  • 431
37
votes
2 answers

What actually is $RPM_BUILD_ROOT?

In the process of building an RPM package, I have to specify the BuildRoot and later will be used in %install which invovles $RPM_BUILD_ROOT. I always think that $RPM_BUILD_ROOT is the fake installation for RPM to perform packaging. Then, at install…
Amumu
  • 17,924
  • 31
  • 84
  • 131
36
votes
4 answers

Logger for Java library

I'm writing a library that gathers various functions that I'll be using in different applications. I want it to generate log statements visible for the user of the library, i.e., if I'm building an application and I'm using the library, I want the…
João Daniel
  • 8,696
  • 11
  • 41
  • 65
36
votes
2 answers

How to set the build area for rpmbuild per-invocation

I'm modifying an automated build, and want to tell rpmbuild to use a specific build area when invoking it. This is similar to an existing question, but more specific. I don't want to run any of the build commands as the root user; the aim is only…
bignose
  • 30,281
  • 14
  • 77
  • 110
36
votes
5 answers

How to package a command line Python script

I've created a python script that's intended to be used from the command line. How do I go about packaging it? This is my first python package and I've read a bit about setuptools, but I'm still not sure the best way to do this. Solution I ended up…
Zach
  • 24,496
  • 9
  • 43
  • 50
31
votes
4 answers

How to remotely update Python applications

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…
orionz
  • 311
  • 1
  • 3
  • 4
31
votes
10 answers

Version control for large binary files and >1TB repositories?

Sorry to come up with this topic again, as there are soo many other questions already related - but none that covers my problem directly. What I'm searching is a good version control system that can handle only two simple requirements: store large…
Christoph Voigt
  • 365
  • 1
  • 4
  • 7
30
votes
11 answers

Non-resolvable parent POM for Could not find artifact and 'parent.relativePath' points at wrong local POM

I am new to maven. I have one project which I try to build with the maven3. When I run the command mvn -X clean install I got the error. [root@localhost]# mvn -X clean install Apache Maven 3.0.4 (r1232337; 2012-01-17 14:14:56+0530) Maven home:…
Nilesh
  • 20,521
  • 16
  • 92
  • 148
28
votes
5 answers

Adding folder in eclipse in src directory without making it package

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…
Tarun Kumar
  • 5,150
  • 6
  • 26
  • 30
28
votes
1 answer

What is "where" argument for in setuptools.find_packages?

working on a python project, I tried to separate source code and unit tests; here is the project structure: MyProject/ MANIFEST.in README.md setup.py source/ __init.py__ my_project/ __init.py__ …
Géraud
  • 1,923
  • 3
  • 20
  • 20