0

We are a small team trying to work on a python project using eclipse + pydev.
For our version control we use cloudforge SVN and the subclipse plugin.

I am trying to figure out what is the right way to include external libs which are normally installed
locally to the python in Lib/site-packages.

I tried several ways but some of them made some complications.
I am looking for the best-practice method for this matter.

Thanks in advance!

3
  • I wonder why you would want to do this. I would do this only for very few selected libraries which you don't download as part of your build process. For anything else, you just specify the libraries you need (possibly pinning the versions you need) and / or setup a PyPi mirror if the amount of packages you need is big enough. Commented Jun 9, 2014 at 16:54
  • And if I do download the libraries. How can I include them in the project and not int Lib/site-packages ? Commented Jun 10, 2014 at 17:36
  • 1
    I assume you use one of the Python package tools, e.g. pip or setuptools. For any package ("egg") you're working, you can declare dependencies which will then get downloaded as required. If you don't want these packages to end up in site-packages, take a look at virtualenv. Commented Jun 10, 2014 at 18:29

1 Answer 1

2

Use svn:externals. Example:

svn propset svn:externals 'akismet http://plugins.svn.wordpress.org/akismet/trunk' svn commit 

Your next update is going to incorporate the external source from http://plugins.svn.wordpress.org/akismet/trunk in the akismet directory. Hope that helps...

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.