in python

Adding automatically ez_setup in your SVN repository

For users that don’t yet have setuptools installed (or a too old version) or who want to include a copy of in their package distribution, here is the one-true-way. This method is already documented on Phillip J. Eby‘s setuptools pages, but it’s buried in the middle, and I keep forgetting how to do it. So here it is:

First, go to the root (trunk) of your project, and edit the properties of your SVN folder using the following command:

svn propedit svn:externals .

This will open your favorite text editor where you’ll put the following line:

ez_setup svn://

Then do a svn ci, and then svn update, you’re all set!
Note: If you use the find_packages method in your project, you’ll have to explicitely exclude the ez_setup folder. You can edit your file to add:


packages = find_packages(exclude=[‘ez_setup’]),

FacebooktwitterredditpinterestlinkedinmailNo tags for this post.

Write a Comment