Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19719

Re: Installing pypi package twice

Date 2012-02-01 16:54 +0000
From Andrea Crotti <andrea.crotti.0@gmail.com>
Subject Re: Installing pypi package twice
References <mailman.5286.1328076275.27778.python-list@python.org> <4f296d35$0$6891$e4fe514c@news2.news.xs4all.nl>
Newsgroups comp.lang.python
Message-ID <mailman.5305.1328115297.27778.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Installing pypi package twice Jason Friedman <jason@powerpull.net> - 2012-02-01 06:04 +0000
  Re: Installing pypi package twice Hans Mulder <hansmu@xs4all.nl> - 2012-02-01 17:49 +0100
    Re: Installing pypi package twice Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-02-01 16:54 +0000

csiph-web