Poetry plugin that adds support for building non platform wheels by ignoring build scripts.
Project description
poetry-plugin-ignore-build-script
Description
poetry-plugin-ignore-build-script is a plugin for poetry, the Python packaging and dependency manager. It enables creating either plaform specific or pure python wheels.
Installation
Follow poetry's plugin installation instructions, replacing poetry-plugin
with poetry-plugin-ignore-build-script
.
Usage
If you set up a build script in your pyproject.toml files as follows:
...
[tool.poetry.build]
script = "build.py"
generate-setup-file = true
...
and corrresponding build script which uses mypycify or cythonize:
from mypyc.build import mypycify
modules = [
"my_package/submod1/foo.py",
...
"my_package/submodn/bar.py",
]
extensions = mypycify(modules)
# from Cython.Build import cythonize
#extensions = cythonize("my_package/*.pyx", include_path=[...])
def build(setup_kwargs):
setup_kwargs.update(
{
"ext_modules": extensions,
}
)
To build a non platform specific wheel (e.g. "my-package-0.1.1-py3-none-any.whl") then use the following command:
poetry build --ignore-build-script
To build a platform specific wheel (e.g. "my-package-0.1.1-cp310-cp310-manylinux_2_35_x86_64.whl") then use the standard poetry command:
poetry build
Notes
This plugin is a way to workaround poetry limitation #8039.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file poetry_plugin_ignore_build_script-0.1.0.tar.gz
.
File metadata
- Download URL: poetry_plugin_ignore_build_script-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.4 Linux/5.15.0-72-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25f147e4ded29d20f6bcc407cfef3181122c249b3d6bdf8e0fbac2ace605b049 |
|
MD5 | afa1f715f54a61194fd02eabc31f39a9 |
|
BLAKE2b-256 | 708820e748ae0811aece6103fea488ecd882a1a024ce07adcb84bd10addae1cc |
File details
Details for the file poetry_plugin_ignore_build_script-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: poetry_plugin_ignore_build_script-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.4 Linux/5.15.0-72-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfe49cb0e523c75df1a672b56269794eacc98f9adba06e115e613ab544f981a0 |
|
MD5 | 021d1423aaa2579bc78c3b6c763deefa |
|
BLAKE2b-256 | 6aac35313fd6c17110b8ca281cdca243d39835f32f4ac12cff8e57a4343ed08f |