Installing pypi package twice
Andrea Crotti
andrea.crotti.0 at gmail.com
Wed Feb 1 11:54:52 EST 2012
On 02/01/2012 04:49 PM, Hans Mulder wrote:
>
> How about (in another directory):
>
> $ tar xzf package.tar.gz
> $ cd package
> $ /opt/python/bin/python setup.py build
> $ sudo /opt/python/bin/python setup.py install
>
> This assumes that /opt/python/bin/python is your python3.2 executable.
>
> You may want to insert some testing between the 'build' and 'install'
> steps. Or you could try:
>
> $ /opt/python/bin/python -m compileall build/lib
>
> That would try to compile all Python files in the subdirectory to byte
> code. That's likely to fail if the Python code is not valid Python 3.
> If it compiles, you may still want to do some testing.
>
> Hope this helps,
>
> -- HansM
That works, but it's probably easier to (depending on your needs):
- install easy_install / pip for that python version
- use virtualenv
More information about the Python-list
mailing list