I can't install Sphinx in a Python 3.2 directory with distribute 0.6.13 installed due to a bug in outdated distribute. Sphinx uses distribute_setup.py and if no setuptools installed it fetches new version where there is no such problem. The check is the following code:
try: from setuptools import setup, find_packages except ImportError: import distribute_setup distribute_setup.use_setuptools() from setuptools import setup, find_packages
What is the proper way to modify it to make distribute_setup.py upgrade distribute if necessary? -- anatoly t.
On Mon, Oct 22, 2012 at 3:57 PM, anatoly techtonik techtonik@gmail.com wrote:
I can't install Sphinx in a Python 3.2 directory with distribute 0.6.13 installed due to a bug in outdated distribute. Sphinx uses distribute_setup.py and if no setuptools installed it fetches new version where there is no such problem. The check is the following code:
try: from setuptools import setup, find_packages except ImportError: import distribute_setup distribute_setup.use_setuptools() from setuptools import setup, find_packages
What is the proper way to modify it to make distribute_setup.py upgrade distribute if necessary? -- anatoly t.
You should just invoke a recent virtualenv on the environment.
On Mon, Oct 22, 2012 at 11:00 PM, Daniel Holth dholth@gmail.com wrote:
On Mon, Oct 22, 2012 at 3:57 PM, anatoly techtonik techtonik@gmail.com wrote:
I can't install Sphinx in a Python 3.2 directory with distribute 0.6.13 installed due to a bug in outdated distribute. Sphinx uses distribute_setup.py and if no setuptools installed it fetches new version where there is no such problem. The check is the following code:
try: from setuptools import setup, find_packages except ImportError: import distribute_setup distribute_setup.use_setuptools() from setuptools import setup, find_packages
What is the proper way to modify it to make distribute_setup.py upgrade distribute if necessary? -- anatoly t.
You should just invoke a recent virtualenv on the environment.
It is for system-wide installation of Sphinx. I need it as a user tool. -- anatoly t.
anatoly techtonik <techtonik <at> gmail.com> writes:
On Mon, Oct 22, 2012 at 11:00 PM, Daniel Holth <dholth <at> gmail.com> wrote:
You should just invoke a recent virtualenv on the environment.
It is for system-wide installation of Sphinx. I need it as a user tool.
Download the latest version of distribute_setup.py from
http://python-distribute.org/distribute_setup.py
Then run it (using sudo if necessary). It should download the latest distribute version (0.6.30) and install it in your environment. You might want to try it in a virtualenv first.
Regards,
Vinay Sajip
If this system uses rpm or deb it will be beneficial to find a newer system package of distribute if at all possible. On Oct 22, 2012 5:44 PM, "Vinay Sajip" vinay_sajip@yahoo.co.uk wrote:
anatoly techtonik <techtonik <at> gmail.com> writes:
On Mon, Oct 22, 2012 at 11:00 PM, Daniel Holth <dholth <at> gmail.com>
wrote:
You should just invoke a recent virtualenv on the environment.
It is for system-wide installation of Sphinx. I need it as a user tool.
Download the latest version of distribute_setup.py from
http://python-distribute.org/distribute_setup.py
Then run it (using sudo if necessary). It should download the latest distribute version (0.6.30) and install it in your environment. You might want to try it in a virtualenv first.
Regards,
Vinay Sajip
Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
On Tue, Oct 23, 2012 at 12:40 AM, Vinay Sajip vinay_sajip@yahoo.co.uk wrote:
anatoly techtonik <techtonik <at> gmail.com> writes:
On Mon, Oct 22, 2012 at 11:00 PM, Daniel Holth <dholth <at> gmail.com> wrote:
You should just invoke a recent virtualenv on the environment.
It is for system-wide installation of Sphinx. I need it as a user tool.
Download the latest version of distribute_setup.py from
http://python-distribute.org/distribute_setup.py
Then run it (using sudo if necessary). It should download the latest distribute version (0.6.30) and install it in your environment. You might want to try it in a virtualenv first.
That doesn't answer the question: What is the proper way to modify the following setup.py to make distribute_setup.py upgrade itself if necessary?
try: from setuptools import setup, find_packages except ImportError: import distribute_setup distribute_setup.use_setuptools() from setuptools import setup, find_packages
The problem here that setuptools import works correctly, but it is not the required version. I want to check if this setuptools is distribute, if its version is correct, and if not - rerun already patched `distribute_setup` to update.
It is desired to have automatic upgrade, not waiting for new magic bugs and wasting time troubleshooting what's going on. See Python 3.2 chapter in this report for a background https://bitbucket.org/birkenfeld/sphinx/issue/1022/doesnt-install-with-pytho...