Python distribute (Setuptools) module.
Questions tagged [distribute]
228 questions
33
votes
2 answers
How do I force `setup.py test` to install dependencies into my `virtualenv`?
In a crusade to make my application pip-installable, I'm fighting big fights with setuptools and distribute. I assume my dependencies are correct, i.e. installing with pip install myapp should probably fill the virtual environment correctly.…

Nikolai Prokoschenko
- 8,465
- 11
- 58
- 97
28
votes
3 answers
How can I make setuptools (or distribute) install a package from the local file system
Is it possible to specify (editable) source dependencies in setup.py that are known to reside on the local file system?
Consider the following directory structure, all of which lives in a single VCS repository:
projects
utils
setup.py
...
…

millerdev
- 10,011
- 2
- 31
- 27
26
votes
4 answers
How do I write a setup.py for a twistd/twisted plugin that works with setuptools, distribute, etc?
The Twisted Plugin System is the preferred way to write extensible twisted applications.
However, due to the way the plugin system is structured (plugins go into a twisted/plugins directory which should not be a Python package), writing a proper…

Sidnei
- 531
- 4
- 8
26
votes
2 answers
Why doesn't setuptools 1.3.1 appear when I pip freeze?
I am running virtualenvwrapper and friends on Ubuntu 12.04 (virtualenvwrapper 1.7.1.2, virtualenv 1.7.1.2, pip 1.0, Distribute 0.6.24, Python 2.7). To be able to pip install matplotlib I need a newer version of Distribute/setuptools, so I do the…

lofidevops
- 15,528
- 14
- 79
- 119
25
votes
1 answer
How to determine the name of an egg for a Python package on Github?
I know I can install with
$ pip install -e git+https://git.repo/some_pkg#egg=SomePackage
but -- when I'm trying to use somebody else's package -- how do I determine what the name of the egg is?

Brian Dant
- 4,029
- 6
- 33
- 47
24
votes
5 answers
State of Python Packaging: Buildout, Distribute, Distutils, EasyInstall, etc
The last time I had to worry about installing Python packages was two years ago working with Enthought, NumPy and MayaVi2. That experience gave me lingering nightmares related to quirky behavior installing & updating Python packages in non-standard…

Pete
- 10,310
- 7
- 53
- 59
24
votes
1 answer
setup.py: expected parenthesized list when required package name contains a dash
I am writing a reusable Django app as described here:
https://django.readthedocs.org/en/1.5.x/intro/reusable-apps.html
When I specify a requirement in setup.py that contains a dash in the package name, setup.py will not run. For example, if my…

Travis Bear
- 13,039
- 7
- 42
- 51
18
votes
3 answers
python-pip yum package provides pip-python instead of pip
I installed python-pip package via yum (using Fedora's updates repo). It does not add the pip script to my PATH though.
$ which pip
/usr/bin/which: no pip in
(/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:
…

Belmin Fernandez
- 8,307
- 9
- 51
- 75
18
votes
5 answers
How do you correct Module already loaded UserWarnings in Python?
Getting the following kinds of warnings when running most python scripts in the command line:
/Library/Python/2.6/site-packages/virtualenvwrapper/hook_loader.py:16: UserWarning: Module
pkg_resources was already imported from…

Derek Reynolds
- 3,473
- 3
- 25
- 34
14
votes
1 answer
installing a Python package source tarball with pip
I'm trying to figure out how to construct a Python source package that is installable via pip. I tried creating a test project with the setup.py file described on http://packages.python.org/an_example_pypi_project/setuptools.html
and a number of…

lebedov
- 1,371
- 2
- 12
- 27
14
votes
3 answers
Distributing python code with virtualenv?
I want to distribute some python code, with a few external dependencies, to machines with only core python installed (and users that unfamiliar with easy_install etc.).
I was wondering if perhaps virtualenv can be used for this purpose? I should be…

malangi
- 2,692
- 4
- 28
- 42
14
votes
1 answer
Setting package_dir to ..?
I have a Git repository cloned into myproject, with an __init__.py at the root of the repository, making the whole thing an importable Python package.
I'm trying to write a setuptools setup.py for the package, which will also sit in the root of the…

interfect
- 2,665
- 1
- 20
- 35
12
votes
1 answer
Add a dll/so to a python built distribution
I've compiled the python wrapper of nanomsg and I want to create a python installer for the package.The package can be created by running
python setup.py bdist --format=wininst
However I would like nanomsg.dll/nanomsg.so to be included in the…

shluvme
- 713
- 7
- 24
11
votes
4 answers
automatically update python script
TL;DR I need a module which will automatically update my script in the background, silently.
I'm have a Python script which I distribute to users. I frequently update this, and then ask them to update it (via PIP). Obviously, this isn't a high…

Paul Biggar
- 27,579
- 21
- 99
- 152
11
votes
1 answer
Setuptools unable to use link from dependency_links
I've been trying to install a package with the following setup configured:
setup(
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django==1.5.1',
'xhtml2pdf',
],
dependency_links=[
…

Heyl1
- 2,437
- 3
- 24
- 31