Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Astropy-helpers installation fails with setuptools 42.0 #501

@athornton

Description

@athornton

See pypa/setuptools#1919

Basically, if you don't also explicitly install the wheel package, the astropy-helpers build fails with something along the lines of:

    ERROR: Command errored out with exit status 1:

     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xtxao4pu/astroquery/setup.py'"'"'; __file__='"'"'/tmp/pip-install-xtxao4pu/astroquery/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-xtxao4pu/astroquery/pip-egg-info

         cwd: /tmp/pip-install-xtxao4pu/astroquery/

    Complete output (59 lines):

      ERROR: Command errored out with exit status 1:

       command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-c3_zcfv_/astropy-helpers/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-c3_zcfv_/astropy-helpers/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-p_66m4e6

           cwd: /tmp/pip-wheel-c3_zcfv_/astropy-helpers/

      Complete output (6 lines):

      usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]

         or: setup.py --help [cmd1 cmd2 ...]

         or: setup.py --help-commands

         or: setup.py cmd --help

    

      error: invalid command 'bdist_wheel'

      ----------------------------------------

      ERROR: Failed building wheel for astropy-helpers

    ERROR: Failed to build one or more wheels

    Traceback (most recent call last):

      File "/usr/local/lib/python3.6/site-packages/setuptools/installer.py", line 119, in fetch_build_egg

        subprocess.check_call(cmd)

      File "/usr/lib64/python3.6/subprocess.py", line 311, in check_call

        raise CalledProcessError(retcode, cmd)

    subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpxb9soxnb', '--quiet', '--index-url', 'https://pypi.python.org/simple', 'astropy-helpers==2.0.11']' returned non-zero exit status 1.

"Be-PEP-517 Compliant" seems to be the recommended fix, although I don't know what that entails. See https://stackoverflow.com/questions/58753970/how-to-build-a-source-distribution-without-using-setup-py-file/58756491#58756491 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions