1. you're adding '/pyramid-1.4/pyramid' to the sys.path. that's
looking at the root of your entire system, not the the root of your
project.
2. ruby has something called 'bundler' , which basically automates
virtualenv + pip + routes, or lets you create a "vendor" directory
where you can distribute 3rd party libraries with your code. python
doesn't really have that. this is something you'll deal with on any
Python framework.
There are 2 general ways I've seen people handle this
A. Create a 'lib' or 'extlib' ( external library ) directory . stick
all of your 3rd party libraries in there. note that this will only
work for pure-python libraries -- ones that don't have c extensions.
B. Use a packaging tool. These posts talk about different strategies
http://stackoverflow.com/questions/106725/how-to-bundle-a-python-application-including-dependencies-for-windows
http://hackerboss.com/how-to-distribute-commercial-python-applications/
StackOverflow has a lot of questions on this topic. I strongly
suggest you explore there and ask some questions there as well --
although this involves pyramid, your concerns are really on Python
packaging in general.
In general though -- what you're trying to do is what 99.9999999% of
people who use Python actively avoid and recommend against.
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.