On Fri, Feb 27, 2009 at 9:30 AM, yvesm <[email protected]> wrote:
>
> Hi All,
>
> http://www.turbogears.org/2.0/docs/main/DownloadInstall.html /
> Installing non Python Dependencies / windows says : "You may also want
> the win32all package as it provides some very useful tools for windows
> developers, the first you will encounter is the ability to make
> virtualenv work with paths that contain spaces."
>
> Virtualenv creates the Python executable in the Scripts directory and
> copies/creates a bunch of files and 2 directories in the Lib
> directory, but not the easy_install executable I need.  I have the
> win32api installed in the system Python I use to create a virtualenv
> (C:\Program Files\MyDir\Python25\) so what do I do now ?  I guess
> things don't happen automagically.

Hi, the problem is the --no-site-packages that makes the venv 100%
isolated which means global packages (mysqldb, win32api, etc.) won't
be loaded. It's something you normally learn over time but it has come
up so many times that I think I'm going to add it to the install docs.
You have 2 options

1- install win32api inside the venv (I'm not sure this works, some
complex packages with C dependencies just don't work, not to mention
you may need a compiler for it)
2- do not use the --no-site-packages flag which will expose the
win32api and everything else from your global site-packages to the
venv, which means you need to be careful with the content of the
global one or you could screw up your install..
3- patch venv to add the --some-site-packages flag, this is something
that has been discussed yet no one has come up with patches.

@all, can we change the --no-site-packages to a public venv?

in fact maybe we should write a couple of "Crash course docs"
"Crash course to virtualenv"
"Crash course to setuptools/easy_install"
"Crash course to pip"

and link those from the install docs. How about it?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to