You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running python -m build for my project fails with maturin 0.14.1 and the new src project structure.
Your Python version (python -V)
Python 3.11.0
Your pip version (pip -V)
pip 22.3.1 from /home/lily/.virtualenvs/kolo/lib/python3.11/site-packages/pip (python 3.11)
What bindings you're using
pyo3
Does cargo build work?
Yes, it works
If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?
Yes
Steps to Reproduce
Create a mixed rust/python project using the new python src layout introduced in maturin 0.14.
Run python -m build:
$ python -m build
* Creating venv isolated environment...
* Installing packages in isolated environment... (maturin>=0.14,<0.15)
* Getting build dependencies for sdist...
* Building sdist...
Running `maturin pep517 write-sdist --sdist-directory /home/lily/work/klopp/kolo/python/dist`
💥 maturin failed
Caused by: No such file or directory (os error 2)
Error: command ['maturin', 'pep517', 'write-sdist', '--sdist-directory', '/home/lily/work/klopp/kolo/python/dist'] returned non-zero exit status 1
ERROR Backend subprocess exited when trying to invoke build_sdist
Or run maturin directly:
$ maturin pep517 write-sdist --sdist-directory ~/work/klopp/kolo/python/dist/
💥 maturin failed
Caused by: No such file or directory (os error 2)
maturin develop runs with no errors:
$ maturin develop
🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings
🐍 Found CPython 3.11 at /home/lily/.virtualenvs/kolo/bin/python
Ignoring importlib_metadata: markers 'python_version < "3.8"' don't match your environment
Ignoring tomli: markers 'python_version < "3.11"' don't match your environment
Ignoring jinja2: markers 'extra == "test_generation"' don't match your environment
Requirement already satisfied: cerberus>=1.3.4 in /home/lily/.virtualenvs/kolo/lib/python3.11/site-packages (1.3.4)
Requirement already satisfied: click>=7.1.2 in /home/lily/.virtualenvs/kolo/lib/python3.11/site-packages (8.1.3)
Requirement already satisfied: toolz>=0.11.1 in /home/lily/.virtualenvs/kolo/lib/python3.11/site-packages (0.12.0)
Requirement already satisfied: ulid-py>=1.1.0 in /home/lily/.virtualenvs/kolo/lib/python3.11/site-packages (1.1.0)
Requirement already satisfied: setuptools in /home/lily/.virtualenvs/kolo/lib/python3.11/site-packages (from cerberus>=1.3.4) (65.5.0)
Finished dev [unoptimized + debuginfo] target(s) in 0.01s
📦 Built wheel for CPython 3.11 to /tmp/.tmpCNEjwL/kolo-2.2.1-cp311-cp311-linux_x86_64.whl
🛠 Installed kolo-2.2.1
As does cargo build (from the rust subdirectory):
$ cd rust
$ cargo build
Compiling pyo3-build-config v0.17.3
Compiling pyo3-ffi v0.17.3
Compiling pyo3 v0.17.3
Compiling _kolo v2.2.1 (/home/lily/work/klopp/kolo/python/rust)
Finished dev [unoptimized + debuginfo] target(s) in 2.95s
The text was updated successfully, but these errors were encountered:
Bug Description
Running
python -m build
for my project fails with maturin0.14.1
and the newsrc
project structure.Your Python version (
python -V
)Python 3.11.0
Your pip version (
pip -V
)pip 22.3.1 from /home/lily/.virtualenvs/kolo/lib/python3.11/site-packages/pip (python 3.11)
What bindings you're using
pyo3
Does
cargo build
work?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/
)?Steps to Reproduce
Create a mixed rust/python project using the new python
src
layout introduced in maturin0.14
.Run
python -m build
:Or run maturin directly:
maturin develop
runs with no errors:As does
cargo build
(from therust
subdirectory):The text was updated successfully, but these errors were encountered: