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
28
votes
6 answers

What are the advantages of packaging your python library/application as an .egg file?

I've read some about .egg files and I've noticed them in my lib directory but what are the advantages/disadvantages of using then as a developer?
minty
  • 22,235
  • 40
  • 89
  • 106
28
votes
2 answers

Python: Why do some packages get installed as eggs and some as "egg folders"?

I maintain a few Python packages. I have a very similar setup.py file for each of them. However, when doing setup.py install, one of my packages gets installed as an egg, while the others get installed as "egg folders", i.e. folders with an…
Ram Rachum
  • 84,019
  • 84
  • 236
  • 374
28
votes
3 answers

How can I make setuptools (or distribute) install a package from the local file system

Is it possible to specify (editable) source dependencies in setup.py that are known to reside on the local file system? Consider the following directory structure, all of which lives in a single VCS repository: projects utils setup.py ... …
millerdev
  • 10,011
  • 2
  • 31
  • 27
27
votes
1 answer

Is there complete documentation for `setup.cfg`?

The Python Packaging Tutorial recommends that "Static metadata (setup.cfg) should be preferred. Dynamic metadata (setup.py) should be used only as an escape hatch when absolutely necessary. setup.py used to be required, but can be omitted with newer…
intuited
  • 23,174
  • 7
  • 66
  • 88
27
votes
5 answers

How to create my own android library and host it

I'm working on creating a log-in screen to be used with multiple different android applications. What would be the best way to package it so that other people could use my log-in function on their apps. It would be preferred that it would auto-sync…
Ryan Newsom
  • 696
  • 7
  • 12
26
votes
2 answers

How to know the value of built-in macro in RPM?

How do I view the value of these macros in RPM? I can take a guess that %_bindir is /usr/bin, %_tmppath is /tmp, but: how exactly do I view these values and are their values system-dependent? %_prefix %_exec_prefix %_bindir %_sbindir…
Amumu
  • 17,924
  • 31
  • 84
  • 131
26
votes
10 answers

java.lang.Exception vs. rolling your own exception

At what point would you create your own exception class vs. using java.lang.Exception? (All the time? Only if it will be used outside the package? Only if it must contain advanced logic? etc...)
mcjabberz
  • 9,788
  • 10
  • 36
  • 38
26
votes
1 answer

Generating a PHAR for a simple application

I'm experimenting in building CLI tools using the Symfony2 console library. I've got something basic working and now I want to package it as a phar. I've read a few examples but the ones I've seen are very simple (3 files, no namespaces, etc). In my…
Bendihossan
  • 2,407
  • 5
  • 22
  • 25
26
votes
1 answer

Change default dist folder with setuptools

I'm using setuptools 0.6 to package my code. By default when I type python setup.py sdist, the tool creates a folder dist directly in the same folder of my script. What I can do to change this default folder? Edit: Another question is, if my setup…
nam
  • 3,542
  • 9
  • 46
  • 68
25
votes
6 answers

Diagnosing R Package build Error: pdfLatex Not Available

I am trying to build a package in R. I made the skeleton, and ran the command R CMD check package1. I got an an error described here. I followed the solution steps, and the results are: package devtools not available for R 2.15.1 punched in R CMD…
jackStinger
  • 2,035
  • 5
  • 23
  • 36
25
votes
1 answer

How do you create an osx application/dmg from a python package?

I want to create a mac osx application from python package and then put it in a disk image. Because I load some resources out of the package, the package should not reside in a zip file. The resulting disk image should display the background…
Florian Bösch
  • 27,420
  • 11
  • 48
  • 53
24
votes
10 answers

Python Daemon Packaging Best Practices

I have a tool which I have written in python and generally should be run as a daemon. What are the best practices for packaging this tool for distribution, particularly how should settings files and the daemon executable/script be…
SeanOC
  • 1,331
  • 1
  • 8
  • 12
24
votes
3 answers

Questions about Setuptools and alternatives

I've seen a good bit of setuptools bashing on the internets lately. Most recently, I read James Bennett's On packaging post on why no one should be using setuptools. From my time in #python on Freenode, I know that there are a few souls there who…
Jeremy Cantrell
  • 26,392
  • 13
  • 55
  • 78
24
votes
2 answers

Registering packages in Go without cyclic dependency

I have a central package that provides several interfaces that other packages are dependent on (let us call one Client). Those other packages, provide several implementations of those first interfaces (UDPClient, TCPClient). I instantiate a Client…
Matt Joiner
  • 112,946
  • 110
  • 377
  • 526
24
votes
3 answers

Pyinstaller: generate -exe file + folder (in --onefile mode)

Now i'm working with Pyinstaller. I have an script which get images from a img folder.. /python |----/img |----|----icon1.ico |----|----icon2.ico |----maint.py My script to generate .exe is pyinstaller.py --windowed --noconsole --clean --onefile…
MigRome
  • 1,095
  • 1
  • 12
  • 28