Python - Source Distribution (sdists)

Card Puncher Data Processing

About

Code Shipping - Source (Distribution|Archive) in Python.

Source distributions are also known as sdists for short.

Management

Create

With Python 3 - SetupTools and its's Python - setup.py script.

cd /project
python setup.py sdist

Root

Some projects use a src or lib subdirectory as the source root

# for src
package_dir={'': 'src'},  # tell distutils packages are under src
packages=find_packages('src'),
# or for lib
package_dir={'': 'lib'},
packages=find_packages('lib'),
[options]
package_dir=
    =src
packages=find:

[options.packages.find]
where=src
  • On the command line
--egg-base=SOURCEDIR, -e SOURCEDIR





Discover More
Card Puncher Data Processing
Python - Packages (Archive, Distribution)

in Python Packages (or better Distribution package) are the result of the packaging of a project that may contains one or more (regular) package regular packageregular package A package is a compressed...
Python Build Artifact Setup Py
Python - Regular Package (Shipping | Packaging)

and in Python How to release regular package adapted from (they are using the setuptools framework) With python 3. where: setup.py...
Card Puncher Data Processing
Python - Script

in Python are source file that can be run. On Linux, begin your scripts with your interpreter. See or You can find them by executing the whereis commando: sys.argv[0] is the script name...
Card Puncher Data Processing
Python - Wheel Archive (whl - bdist_wheel)

Wheel is a compiled archive format with the .whl extension. A wheel is a built package that can be installed without needing to go through the “build” process. Installing wheels is substantially faster...
Card Puncher Data Processing
Python Packaging - Version / Release

and in Python This naming convention of compiled files allows compiled modules from different releases of Python to coexist. All below properties of a build. ie: alias...



Share this page:
Follow us:
Task Runner