Quantcast

Cyclic makedependencies in pypy-setuptools and pypy3-setuptools

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Cyclic makedependencies in pypy-setuptools and pypy3-setuptools

Daniel Milde-2
Hi,
I would like to ask you for help with one messy issue with
pypy-setuptools[1].

Python setuptools do not include its dependencies in vendor dir since
version 34.
It now requires the dependencies to be installed first in order to
setuptools been installed.

But the dependencies require setuptools to be installed to be able to
install themself :) and thus cyclic makedependecies occur...

This cyclic dependency is in package python-setuptools as well but
because this package is in extra nobody cares, because nobody builds it
by itself.

Do you have any idea, how to solve this nicely?

I have added this instructions to pypy-setuptools package, but it's not
ideal though:

1. install setuptools manually via ensurepip:

# sudo pypy -m ensurepip
# sudo pypy3 -m ensurepip

If you get error message "Ignoring ensurepip failure: pip 8.1.2 requires
SSL/TLS", there is easy hack/fix:
sudo curl -o
/opt/pypy3/lib-python/3/ssl.py https://gist.githubusercontent.com/gumblex/b77e5d6fba8d01a41789beb6dc90adec/raw/2ff2cafd81e8a23b0249631f2be982009a072116/ssl.py
see https://www.reddit.com/r/learnpython/comments/5rblst/cant_use_pip_with_pypy_on_arch_linux/

2. install all setuptools dependencies (pypy-six, pypy-pyparsing,
pypy-packaging, pypy-appdirs)

You will have to edit the PKGBUILD and remove dependency on
pypy-setuptools during this first install.

3. install pypy-setuptools with --force (because ensurepip installed
files on same paths)

Thanks
Daniel

[1] https://aur.archlinux.org/packages/pypy-setuptools/

Loading...