setuptools

How can I make setuptools install a package that's not on PyPI?

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 ins...

Why does my svn:externals folder not get included in my egg?

I've got a project structure as follows: ProjFolder\project\ |__init__.py |main.py |... |data\ |settings.dtd |archs\ |arch1.arc ... ...

Change setuptools gcc buildpath for Python

I'm trying to install MySQLdb-python on a server I don't have root on. It doesn't have appropriate mysql development files that python setup.py build would usually compile into _mysql.so. I've obtained the files, and placed them in my home directory, however I can't get the build script to find them. When I run the build command, the sc...

python setuptool how can I add dependency for libxml2-dev and libxslt1-dev?

My application needs lxml >= 2.1, but to install lxml its requied to install libxml2-dev libxslt1-dev else it raises error while installing the lxml, is there a way that using python setup tool I can give this as dependency in my setup.py.... ...

How to Update the installed Window Application (Creating Patches)

hi, i have requirement. i have created the window application and i have created the setup of that application that has been installed to client machine. Now the requirement is that if i will do the further modification to the project the client not need to install whole application again instead client only need to install Update of ...

Adding tests to sdist, but not installing

Hi, I'd like to add tests to the sdist package in my setuptools distribution, but I don't want them installed / in bdist. I already have: setup( ... packages = find_packages(exclude='tests'), test_suite = "tests", ... ) But currently the tests/* are always included. How can I change that? ...

Create launchable GUI script from Python setuptools (without console window!)

The way I currently add an executable for my Python-based GUI is this: setup( # ... entry_points = {"gui_scripts" : ['frontend = myfrontendmodule.launcher:main']}, # ... ) On Windows, this will create "frontend.exe" and "frontend-script.pyw" in Python's scripts folder (using Python 2.6). When I execute the EXE ...

python setup.py bdist_egg Not Setting Up Requirements for Package

I have a Pylons app that I am ready to deploy for the first time to production. It has a simple set of requirements listed in setup.py: install_requires=[ "Pylons>=1.0", "Jinja2", "couchdb", "python-openid", ], When I run "python setup.py bdist_egg" it seems to create the egg file properly. When I copy the egg file to ...

How to manage several python subprojects with setuptools?

I'm wondering about the correct/easiest/most pythonic way of dealing with subprojects that you want have using the same base package. We currently have a file structure like this: trunk\ proj1\setup.py company_name\__init__.py + proj1's code proj2\setup.py company_name\__init__.py + proj2's code We want to ...

Do I need *.egg-info directories when using setuptools/distribute to create a python package

I have a "standard" python package layout like this: setup.py - using setuptools README src/moduleA test/ However, when I execute setup.py it decides to create the directory src/moduleA.egg-info. The question is, do I need to worry about the contents of this directory and check it in with the rest of my code, or should I just rely ...

Removing python module installed in develop mode

Hi I was trying the python packaging using setuptools and to test I installed the module in develop mode. i.e python setup.py develop This has added my modules directory to sys.path. Now I want to remove the module is there any way to do this? Thanks in advance ...

Setuptools not found

I am switching from Linux to OSX and when I run our build's setup.py script, I get an error message that contains the text This script requires setuptools version 0.6c7. I have tried several times to install setuptools, and have verified that the setuptools egg exists in /Library/Python/2.6/site-packages. I have no idea why it is n...

Installing SetupTools on 64-bit Windows

I'm running Python 2.7 on Windows 7 64-bit, and when I run the installer for setuptools it tells me that Python 2.7 is not installed. The specific error message is: `Python Version 2.7 required which was not found in the registry` My installed version of Python is: `Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (A...

Install two python modules with same name

What's the best way to install two python modules with the same name? I currently depend on two different facebook libraries: pyfacebook and Facebook's new python-sdk. Both of these libraries install themselves as the module 'facebook'. I can think of a bunch of hacky solutions but before I go an hack away I was curious if there was a py...

Setting basedirlist in setup.cfg and PREFIX in make to point to virtualenv

In SO question 3692928, I showed how I compiled and installed matplotlib in a virtualenv. One thing I did was suboptimal though—I manually set the basedirlist in setup.cfg and PREFIX in make.osx. setup.cfg [directories] basedirlist = /Users/matthew/.virtualenvs/matplotlib-test make.osx PREFIX=/Users/matthew/.virtualenvs/matplotlib-t...

Is there any free cross platform setup builder tool available?

Hello anyone! There are commercial cross-platform install tools out there and i think that they are really useful because you "compose" your setup once and the setup tool compiles it for the target platforms you want it to work for. Unfortunately, such tools are expensive for a shareware author like me - they cost thousands of dollar...

How to import module in parent folder not working in egg

My project has the following structure: setup.py project/ __init__.py main.py errors.py lib/ li1b.py lib2.py I'm importing the errors module with from . errors import Error1, Error2, Error3 which works fine when running the program with python main.py. However when I build and install it as an egg with ...

Why does "python setup.py sdist" create unwanted "PROJECT-egg.info" in project root directory?

When I run python setup.py sdist it creates an sdist in my ./dist directory. This includes a "PROJECT-egg.info" file in the zip inside my "dist" folder, which I don't use, but it doesn't hurt me, so I just ignore it. My question is why does it also create a "PROJECT-egg.info" folder in my project root directory? Can I make it stop ...

Accessing names defined in a package's `__init__.py` when running setuptools tests

I've taken to putting module code directly in a packages __init__.py, even for simple packages where this ends up being the only file. So I have a bunch of packages that look like this (though they're not all called pants:) + pants/ \-- __init__.py \-- setup.py \-- README.txt \--+ test/ \-- __init__.py I started doing this because...

Using Pip, how do I force upgrade non-upgraded packages only?

When running Pip with a requirements.txt file which has fixed versions, we get the following error (or similar): VersionConflict: (solrpy 0.9.1 (.../lib/python2.6/site-packages/solrpy-0.9.1-py2.6.egg), Requirement.parse('solrpy==0.9.3')) because the version conflicts. Using pip install -U -r requirements.txt fixes this, but it al...