Questions tagged [distutils]

Distutils serves as the main packaging system for Python modules and applications.

What causes the unrecognized command line error to occur while using distutils to build a C extension?

When attempting to construct a source using the python's distutils, I encountered an issue. I crafted a basic setup.py following guidance from this example, and executing the build as recommended resulted in success: python setup.py build Now, it is feas ...

Incorporate the git commit hash into a Python file during installation

Is there a way to automatically embed the git hash into the version number of a python module when it is installed from a git repository using ./setup.py install? How can this be done? I am considering defining a function in setup.py that will add the has ...

What is the process for generating an executable .zip file using distutils?

Python 2.6 onwards has a unique feature that allows the direct execution of a .zip file containing a __main__.py file at the top of the archive. I am interested in utilizing this feature to provide preview versions of my tool without requiring users to ins ...

Issues with permissions when running a distutils setup script on a Linux system

After creating a setup.py script using distutils for my python program, I noticed some unusual behavior. It defaults to installing all data_files into /usr/local/my_directory, which seems odd as this is not a common data storage location, right? I decide ...