-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
1.4.1: pep517 build is not producing DSO module #605
Comments
It also doesn't even leave a |
@kloczek My current workaround is to stick to 1.3.3: (define-public python-frozenlist
(package
(name "python-frozenlist")
(version "1.3.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "frozenlist" version))
(sha256
(base32 "0sispcpras096fxrd0i35qs25fqy4r0x8v1d6f40pag845bwbg2q"))))
(build-system python-build-system)
(arguments
(list #:phases #~(modify-phases %standard-phases
;; XXX: The build fails to properly bootstrap itself.
(delete 'ensure-no-cythonized-files))))
(native-inputs (list python-cython python-pytest))
(home-page "https://github.com/aio-libs/frozenlist")
(synopsis "List-like data structure for Python")
(description "@code{frozenlist.FrozenList} is a list-like structure which
implements @code{collections.abc.MutableSequence}. It can be made immutable
by calling @code{FrozenList.freeze}.")
(license license:asl2.0))) I had to keep the pre-generated C Cythonized files otherwise the build would fail. |
Update, I've found a more satisfying solution, by patching build_inplace=False into build_inplace=True in the (define-public python-frozenlist
(package
(name "python-frozenlist")
(version "1.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "frozenlist" version))
(sha256
(base32 "05xqnkqq7k95v5nfgq1kck78v4i36wjl5m3nx148770vwqlszmc1"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags #~(list "-c" "/dev/null") ;avoid pytest-cov
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-pep517-backend
(lambda _
;; Do not build the wheel in a temporary directory, which would
;; cause non-reproducibility in the Cython built shared library,
;; as well as break the install phase of pyproject-build-system
;; due to not finding the '.whl' file.
(substitute* "packaging/pep517_backend/_backend.py"
(("build_inplace=False")
"build_inplace=True")))))))
(native-inputs
(list python-cython
python-expandvars
python-pytest
python-setuptools))
(home-page "https://github.com/aio-libs/frozenlist")
(synopsis "List-like data structure for Python")
(description
"@code{frozenlist.FrozenList} is a list-like structure which
implements @code{collections.abc.MutableSequence}. It can be made immutable
by calling @code{FrozenList.freeze}.")
(license license:asl2.0))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Long story short
Looks like pep517 build is not producing DSO modle.
I'm not sure but it may be result of use
cython
3.0.11.Expected behaviour
pep571 build should build DSO module.
Actual behaviour
Steps to reproduce
Use
pip
orbuild
do perform pep517 build.The text was updated successfully, but these errors were encountered: