Skip to content

Makefile builddir definition broken with setuptools 61+ #110

@hroncok

Description

@hroncok

print("build/lib.{}-{}.{}".format(sysconfig.get_platform(), *sys.version_info[:2]))

setuptools 61+ has chnaged the directory name (build/lib.linux-x86_64-cpython-311 instead of build/lib.linux-x86_64-3.11). "cpython-311" can be read from sys.implementation.cache_tag

This makes the package fail to build in Fedora 37+:

+ make PYTHON=/usr/bin/python3 check
/bin/sh: line 1: git: command not found
/usr/bin/python3 setup.py build_ext 
running build_ext
/usr/bin/python3 setup.py build
running build
running build_py
package init file 'systemd/test/__init__.py' not found (or not a regular file)
running build_ext
(cd build/lib.linux-x86_64-3.11 && /usr/bin/python3 -m pytest . ../../docs -v)
/bin/sh: line 1: cd: build/lib.linux-x86_64-3.11: No such file or directory
make: *** [Makefile:60: check] Error 1

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