[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Packaging a python package that is using setuptools_rust
From: |
Hamzeh Nasajpour |
Subject: |
Re: Packaging a python package that is using setuptools_rust |
Date: |
Sun, 25 Oct 2020 14:58:22 +0330 |
User-agent: |
Cyrus-JMAP/3.3.0-529-g69105b1-fm-20201021.003-g69105b13 |
Thanks for your quick reply.
> (native-inputs
> `(...
> ("rust:cargo" ,rust "cargo")
> ...))
Thanks this step passed, but now I face with another error in dependencies.
```
...
phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
starting phase `build'
running "python setup.py" with command "build" and parameters ()
running build
running build_py
creating build
creating build/lib
creating build/lib/etebase
copying etebase/__init__.py -> build/lib/etebase
running build_ext
running build_rust
error: failed to load source for a dependency on `cpython`
Caused by:
Unable to update registry `https://github.com/rust-lang/crates.io-index`
Caused by:
failed to create directory
`/homeless-shelter/.cargo/registry/index/github.com-1ecc6299db9ec823`
Caused by:
Permission denied (os error 13)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "setup.py", line 4, in <module>
...
```
indeed, this library is python and internally it's using a rust library. the
`cpython` is one its dependencies that I packaged it (`rust-cpython`) and it
needs to it. I don't know how can I add rust dependencies here since I'm using
python build system. I added it to inputs but not resolved.
Indeed now the problem is adding dependencies (some of them rust and some of
them python) to this package while I'm using the python build system. Do you
have any idea?
Regards,
Hamzeh