Buildout support and best practices
I had good luck getting virtualenv up and running with PyCharm and it was pretty intuitive. I'm a bit more confused about buildout though.
In Settings -> Buildout Support I see a checkbox for "Enable buildout support" and then the file selector for "Use paths from script". Can someone please shed light on what exactly these two fields do? Which script is it looking for?
I'm using buildout with a bootstrap.py which then generates bin/buildout. I am assuming the script it wants is in bin/buildout.
I'm just curious mainly about how people use buildout with PyCharm and what the best practices are.
Please sign in to leave a comment.
Hello Devin,
The checkbox enables getting the list of dependencies from the buildout script
selected below. bin\buildout is not the script to be selected; rather, running
bin\buildout downloads the dependencies and creates a runner script for each
part listed in buildout.cfg. What you should select in "Use paths from script"
is one of these scripts.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
When I run bootstrap.py it creates bin/buildout, bin/python, bin/django, and bin/test.
I selected bin/python but it still doesn't pick up django for autocomplete or any of the other packages that are in the buildout environment.
Also, what should the python interpreter be set to in this configuration?
Here is what my buildout.cfg looks like:
[buildout]
parts = python django
develop = .
eggs = myapp
[python]
recipe = zc.recipe.egg
interpreter = python
eggs = ${buildout:eggs}
[django]
recipe = djangorecipe
version = 1.2.4
project = myapp
projectegg = myapp
settings = testsettings
test = myapp
eggs = ${buildout:eggs}
Hello Devin,
You should select bin/django rather than bin/python.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"