How to include package data with setuptools/distutils?
When using setuptools, I can not get the installer to pull in any package_data files. Everything I’ve read says that the following is the correct way to do it. Can someone please advise?
When using setuptools, I can not get the installer to pull in any package_data files. Everything I’ve read says that the following is the correct way to do it. Can someone please advise?
setuptools was developed to overcome Distutils’ limitations, and is not included in the standard library. It introduced a command-line utility called easy_install. It also introduced the setuptools Python package that can be imported in your setup.py script, and the pkg_resources Python package that can be imported in your code to locate data files installed with a distribution. One of its gotchas is that it monkey-patches the distutils Python package. It should work well with pip. It sees regular releases.
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.)
This setup.py:
I’ve just started working with setuptools and virtualenv. My package requires the latest python-gearman that is only available from GitHub. The python-gearman version that’s on PyPI is an old one. The Github source is setuptools-compatible, i.e. has setup.py, etc. Is there a way to make setuptools download and install the new version instead of looking for it on PyPI and installing the old one?
I tried to install the Twilio module:
I’m trying to compile a python extension with cython in win 7 64-bit using mingw (64-bit).
I’m working with Python 2.6 (Active Python 2.6.6) and with the adequate distutils.cfg file (setting mingw as the compiler)
I already have MSVC++ 2010 Express installed, and my vcvarsall.bat file is at C:Program FilesMicrosoft Visual Studio 10.0VC, which is in my system PATH. When I run easy_install, it can’t find vcvarsall.bat.
I’m using Python 2.6 and cx_Freeze 4.1.2 on a Windows system. I’ve created the setup.py to build my executable and everything works fine.
Here’s my stripped-down setup.py script with non-code stuff removed: