How do I make setup.py include a file that isn't part of the code? (Specifically, it's a license file, but it could be any other thing.)
I want to be able to control the location of the file. In the ...

This should be a very common question for developers who used "setup.py" to build installation packages and it should be asked before but I couldn't find the proper answer anywhere.
In setup.py
from ...

Today I created a setup.py-file and found one working script and two none working scenarios.
In the two non working scenarios the package_data after is missing in the build. I created the build with ...

I have a Python package with a standard setup.py installer but I cannot for the life of me get it to install some pre-defined configuration files into site-packages somewhere... my setup() function is ...

How can I include my_math/clog.h properly in the package my_math to let tox pass the py.test suite?
Project file structure:
my_math/__init__.py
my_math/clog.h
my_math/clog.pxd
my_math/integrate.pyx
...

I have a python module that is basically a big wrapper (which does lots more stuff besides) for an external binary (non python). I would like to include the binaries (1 binary for osx, 1 for linux) ...

I can make a python egg using setuptools: python setup.py bdist_egg. In theory, I should be able to do this for every installed package with a setup.py file. Is it possible to encapsulate an entire ...