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
639
votes
5 answers

Differences between distribute, distutils, setuptools and distutils2?

The Situation I’m trying to port an open-source library to Python 3. (SymPy, if anyone is wondering.) So, I need to run 2to3 automatically when building for Python 3. To do that, I need to use distribute. Therefore, I need to port the current…
VPeric
  • 7,391
  • 6
  • 21
  • 17
441
votes
16 answers

Including dependencies in a jar with Maven

Is there a way to force maven(2.0.9) to include all the dependencies in a single jar file? I have a project the builds into a single jar file. I want the classes from dependencies to be copied into the jar as well. Update: I know that I cant just…
racer
  • 4,497
  • 3
  • 18
  • 13
367
votes
7 answers

What is an uber JAR file?

I am reading Maven documentation and came across the name uber-jar. What does an uber-jar mean and what are its features/advantages?
Ashay Batwal
  • 5,415
  • 7
  • 25
  • 30
323
votes
5 answers

What is pyproject.toml file for?

Background I was about to try Python package downloaded from GitHub, and realized that it did not have a setup.py, so I could not install it with pip install -e Instead, the package had a pyproject.toml file which seems to have very…
Niko Föhr
  • 28,336
  • 10
  • 93
  • 96
201
votes
4 answers

setuptools vs. distutils: why is distutils still a thing?

Python has a confusing history of tools that can be used to package and describe projects: these include distutils in the Standard Library, distribute, distutils2, and setuptools (and maybe more). It appears that distribute and distutils2 were…
cel
  • 30,017
  • 18
  • 97
  • 117
183
votes
3 answers

Create a single executable from a Python project

I want to create a single executable from my Python project. A user should be able to download and run it without needing Python installed. If I were just distributing a package, I could use pip, wheel, and PyPI to build and distribute it, but…
ShadowFlame
  • 2,996
  • 5
  • 26
  • 40
170
votes
7 answers

How to write setup.py to include a Git repository as a dependency

I am trying to write setup.py for my package. My package needs to specify a dependency on another Git repository. This is what I have so far: from setuptools import setup, find_packages setup( name='abc', packages=find_packages(), …
Ankur Agarwal
  • 23,692
  • 41
  • 137
  • 208
154
votes
8 answers

py2exe - generate single executable file

I thought I heard that py2exe was able to do this, but I never figured it out. Has anyone successfully done this? Can I see your setup.py file, and what command line options you used? Basically I'm thinking of it giving me a single executable file…
Greg
  • 45,306
  • 89
  • 231
  • 297
136
votes
1 answer

How to ship an executable with Language.Haskell.Interpreter?

I was hoping to embed a Haskell interpreter using hint so that I could write plugins in Haskell to use with my program. I don't want to have to ship the entire Haskell platform for my executables. Normally, Haskell executables are pretty…
Michael Fox
  • 3,632
  • 1
  • 17
  • 27
131
votes
10 answers

How should I structure a Python package that contains Cython code

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…
Craig McQueen
  • 41,871
  • 30
  • 130
  • 181
120
votes
10 answers

How to build a Debian/Ubuntu package from source?

I have the source of a program (taken from cvs/svn/git/...) and I'd like to build a Debian/Ubuntu package for it. The package is present in the repositories, but: It is an older version (lacking features I need) I need slightly different compile…
Ryszard Szopa
  • 5,431
  • 8
  • 33
  • 43
99
votes
5 answers

Is there a standard way to create Debian packages for distributing Python programs?

There is a ton of information on how to do this, but since "there is more than one way to skin a cat", and all the tutorials/manuals that cover a bit of the process seem to make certain assumptions which are different from other tutorials, I still…
mac
  • 42,153
  • 26
  • 121
  • 131
98
votes
3 answers

How to create Python egg file

I have questions about egg files in Python. I have much Python code organized by package and I'm trying to create egg files. I'm following instructions, but they are very common. According to that, it seems I need to have a setup.py file. Would you…
yart
  • 7,515
  • 12
  • 37
  • 37
86
votes
6 answers

How to package & deploy Node.js + express web application?

I am new to Node.js programming and I have recently created a sample working web application using (express, backbone & other complimentary view technologies, with mongoDB). Now i am at a point where I want to deploy the same on a staging…
KBJ
  • 910
  • 1
  • 7
  • 8
78
votes
8 answers

Process to convert simple Python script into Windows executable

I wrote a script that will help a Windows user in her daily life. I want to simply send her the .exe and not ask her to install python, dlls or have to deal with any additional files. I've read plenty of the stackoverflow entries regarding compiling…
greye
  • 8,921
  • 12
  • 41
  • 46
1
2 3
99 100