I was trying out the bootstrap script on WindowsXP with Python2.4
I used the command
go-pylons.py --no-site-packages mydevenv
and had several problems with the ``after_install``:
* ``join(home_dir, 'bin')`` is wrong on windows (``Scripts`` instead
of ``bin`) ,
the docstring example in the original virtualenv.py for
``create_bootstrap_script`` is wrong for Windows
changes: used bin_dir instead (conditional definition as in rest of
virtualenv.py)
{{{
if sys.platform == 'win32':
lib_dir = join(home_dir, 'Lib')
bin_dir = join(home_dir, 'Scripts')
else:
lib_dir = join(home_dir, 'lib', py_version)
bin_dir = join(home_dir, 'bin')
}}}
* compiling extensions does not work in virtualenv, mingw does not
find ``-lpython24``
- jinja: C extension for speedup is not installed
- simplejson: C extension for speedup is not installed
* Mercurial does not install correctly, cannot be compiled
- checkout with hg of virtualenv fails
- Solution:
- do not install mercurial, use system ``hg`` instead, I have hg
in standard python installation
- in subprocess call replace local hg by system hg
{{{
subprocess.call(['hg',
'clone', 'https://www.knowledgetap.com/hg/%s' % name,
join(home_dir, name)])
}}}
* after this it finishes without any further error messages
I haven't done yet any testing or projects to see if everything in
this virtual environment works correctly, but previously, without any
bootstrap script, I didn't have any problems once the installation
finished successfully.
Josef
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-devel" 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/pylons-devel?hl=en
-~----------~----~----~----~------~----~------~--~---