setuptools

setuptools is including dist/ folder in build

i am using setuptools to create and upload a sdist package to PyPI. however everytime i run python setup.py sdist, it includes the dist/ folder and its contents, which i dont want . this behavoir does NOT happen when i use distutils. here is my file structure: / -myModule/ --__init_.py, -- ... -docs/ -examples/ -dist/ setup.py thi...

Where is the source code for a Python egg?

I'm attempting to add a video extension to the Python Markdown-2.0.3-py2.7.egg Things aren't working, so I want to use pdb debugger to see what's going on. I can't seem to find the source code to insert pdb. The egg is located here: /usr/local/lib/python2.7/site-packages/Markdown-2.0.3-py2.7.egg Using iPython, I can view the Pyth...

Setuptools : how to use the setup() function within a script (no setup specific command line argument)

Hi there! I'm writing a tool to automatically generate .egg files from python projects. The tool basically discovers some properties to guess the setup options (such as version number etc). Now I would like to call the setup() function, with the context bdist_egg. I do as such : if __name__ == '__main__' project_dir = _get_dir(sy...

Add repository url to install_requires in project's setup.py

Hi, I'm developing a django app which depends on an app in a private bitbucket repository, for example ssh:/[email protected]/username/my-django-app. is it possible to add this url to the list of install_requires in my setup.py? tried various possibilities, but none worked. ...

How to get setuptools to use a relative path in easy-install.pth when doing "setup.py develop"

I'm installing a python egg using setuptools with the "python setup.py develop" command. It's important that all install paths be relative. I see that I can do: python setup.py develop --egg-path ../../../../my_directory and the .egg-link file uses that relative path. However, the path added to easy-install.pth still is an absolute...

Pylons app deployment with privately developed dependencies

In my organization, we have a couple of internally developed Python packages. For sake of example, let's call them Foo and Bar. Both are developed in separate Git repositories. Foo is a Pylons application that uses certain library functions from Bar. Neither is publicly distributed. When we deploy Foo, we typically export the latest rev...

package data not installed from python .egg file

I'm trying to include some data files in a python package using the setuptools package_data option. I'm then accessing the files with pkg_resources. This works perfectly when the python .egg file is installed as-is (i.e. still zipped). But when the egg file is unzipped during installation, the data files are not installed. In other word...

Installing Python-2.7 on Ubuntu 10.4

I can't seem to install zlib properly, I installed Python from source on Ubuntu10.4 '######## edit ##################### bobince and Luper helped. Make sure you install these packages and then recompile Python: sudo aptitude install zlib1g-dev libreadline6-dev libdb4.8-dev libncurses5-dev '################################# After inst...

What is the easiest way to make an optional C extension for a python package?

I've created a C extension that I'd like to enable in my Python package (using setuptools) only if a command line option is passed in. What is the easiest way to do this? I can't seem to find any straightforward ways of going about this. ...