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.

3 comments
Comment actions Permalink

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.

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.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0
Comment actions Permalink

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}

0
Comment actions Permalink

Hello Devin,

You should select bin/django rather than bin/python.

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:

parts = python django

develop = .

eggs = myapp

recipe = zc.recipe.egg

interpreter = python

eggs = $

recipe = djangorecipe

version = 1.2.4

project = myapp

projectegg = myapp

settings = testsettings

test = myapp

eggs = $

---

Original message URL:

http://devnet.jetbrains.net/message/5283812#5283812

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Please sign in to leave a comment.