Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

50.0.0 broken on AIX with python 3.6 #2358

Closed
scddev opened this issue Aug 31, 2020 · 2 comments
Closed

50.0.0 broken on AIX with python 3.6 #2358

scddev opened this issue Aug 31, 2020 · 2 comments

Comments

@scddev
Copy link

scddev commented Aug 31, 2020

python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade lazy-object-proxy
...
    File "setup.py", line 20, in <module>
      from setuptools.command.build_ext import build_ext
    File "/tmp/pip-build-env-lp5wmcjm/overlay/lib/python3.6/site-packages/setuptools/command/__init__.py", line 8, in <module>
      from distutils.command.bdist import bdist
    File "/tmp/pip-build-env-lp5wmcjm/overlay/lib/python3.6/site-packages/setuptools/_distutils/command/bdist.py", line 24, in <module>
      class bdist(Command):
    File "/tmp/pip-build-env-lp5wmcjm/overlay/lib/python3.6/site-packages/setuptools/_distutils/command/bdist.py", line 32, in bdist
      "(default: %s)" % get_platform()),
    File "/tmp/pip-build-env-lp5wmcjm/overlay/lib/python3.6/site-packages/setuptools/_distutils/util.py", line 107, in get_platform
      return get_host_platform()
    File "/tmp/pip-build-env-lp5wmcjm/overlay/lib/python3.6/site-packages/setuptools/_distutils/util.py", line 82, in get_host_platform
      from _aix_support import aix_platform
  ModuleNotFoundError: No module named '_aix_support'

Setuptools is fetched in https://github.com/ionelmc/python-lazy-object-proxy/blob/master/pyproject.toml

As a quickfix i added https://github.com/python/cpython/blob/master/Lib/_aix_support.py to my python 3.6 installation.

@jaraco
Copy link
Member

jaraco commented Sep 1, 2020

@scddev: can you try replacing util.py and py38compat.py from the aforementioned commit in setuptools/_distutils and remove the added _aix_support.py and confirm that fixes the issue?

@jaraco jaraco reopened this Sep 1, 2020
@jaraco jaraco closed this as completed in 467915b Sep 1, 2020
@scddev
Copy link
Author

scddev commented Sep 1, 2020

@scddev: can you try replacing util.py and py38compat.py from the aforementioned commit in setuptools/_distutils and remove the added _aix_support.py and confirm that fixes the issue?

@jaraco Tried the fix, you mixed tabs/spaces:

      File "/home/scddev/.venv/lib/python3.6/site-packages/setuptools/_distutils/py38compat.py", line 3
        import _aix_support
                          ^
    TabError: inconsistent use of tabs and spaces in indentation

I sorted that out and tested it, then its working fine.

jaraco added a commit that referenced this issue Sep 1, 2020
clrpackages pushed a commit to clearlinux-pkgs/setuptools that referenced this issue Sep 3, 2020
…on 50.0.1

Jason R. Coombs (10):
      Create Github releases when releasing. Fixes #2328.
      Supply ModuleNotFoundError for Python 3.5.
      Restore compatibility with aix_support on Python 3.8 and earlier. Fixes pypa/setuptools#2358.
      Supply a copy of _optim_args_from_interpreter_flags for Python 3.5 compatibility. Ref pypa/setuptools#2357.
      Doctest modules for valid syntax, capturing TabError.
      Fix TabError
      Update changelog. Ref #2358.
      Bugfix is 'misc'. Ref #2361.
      Update changelog. Closes #2357.
      Bump version: 50.0.0 → 50.0.1

Victor Stinner (1):
      Add Python 3.10 support to _distutils_hack
clrpackages pushed a commit to clearlinux-pkgs/openstack-setuptools that referenced this issue Sep 3, 2020
…0 to version 50.0.1

Jason R. Coombs (10):
      Create Github releases when releasing. Fixes #2328.
      Supply ModuleNotFoundError for Python 3.5.
      Restore compatibility with aix_support on Python 3.8 and earlier. Fixes pypa/setuptools#2358.
      Supply a copy of _optim_args_from_interpreter_flags for Python 3.5 compatibility. Ref pypa/setuptools#2357.
      Doctest modules for valid syntax, capturing TabError.
      Fix TabError
      Update changelog. Ref #2358.
      Bugfix is 'misc'. Ref #2361.
      Update changelog. Closes #2357.
      Bump version: 50.0.0 → 50.0.1

Victor Stinner (1):
      Add Python 3.10 support to _distutils_hack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants