WebFaction
Community site: login faq

DateUtil complains that my PYTHONPATH is empty when using python2.6 setup.py install --install-lib=$HOME/webapps/myAPP/lib/python2.6/ --install-scripts=$HOME/webapps/myAPP/bin/ When doing this do I need to create a symbolic link as mentioned in WFSD:Python:Installing Packages with setup.py?

Thanks!

asked 16 Nov '10, 11:30

hunter
624
accept rate: 0%


I just ran test install of this and it worked perfectly using easy_install-2.6:

easy_install-2.6 python-dateutil

If you're not opposed to using easy_install, the above should just work :)

permanent link

answered 16 Nov '10, 11:42

David L ♦♦
1.4k13
accept rate: 45%

Or, he can set PYTHONPATH when running setup.py, like this:

PYTHONPATH=$HOME/webapps/myAPP/lib/python2.6 python2.6 setup.py install --install-lib=$HOME/webapps/myAPP/lib/python2.6/ --install-scripts=$HOME/webapps/myAPP/bin/

Other examples are available here: Installing Python Packages

(16 Nov '10, 11:46) seanf

Thanks seanf -that was it!

(16 Nov '10, 12:12) hunter

that will install into my ~/lib/python2.6/ directory. I would rather install dependencies into the ~/webapps/app/lib/python2.6/ directory. Preferring not to have the module available to all apps using Python2.6 -just the one app. Am I thinking about this all wrong?:)

[Update]: Thanks seanf -that was it!

permanent link

answered 16 Nov '10, 11:53

hunter
624
accept rate: 0%

edited 16 Nov '10, 11:56

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×337
×102
×2

question asked: 16 Nov '10, 11:30

question was seen: 6,867 times

last updated: 16 Nov '10, 12:12

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM