Whatever python you use, run the original bootstrap.py - the one that will be used for your entire project. All paths will reference this particular python, and sitepackages packages will be used for this particular python.
This is one of the best things about creating.
This is 32 bit python 2.6:
/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 boostrap.py
This is 64-bit python 2.7:
/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python bootstrap.py
Now take a look at the bin / it created.
Then make your actual bin / buildout -c dev.cfg file and look at the scripts in the trash. For my 32 bit example:
For the first one that I see in my django file:
#!/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python ... '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages',
The accepted answer says that you need to compile all python. This is not necessary and not recommended, although it will mean that you have completely isolated sites. But there are simpler ways to tell buildout not to include site packages.
The answer from esaelPsnoroMoN is actually correct, but he / she did not describe the solution very well. (I myself ignored him)
felix source share