-
I have a pure Python module that I would like to publish using pyarmor's new [build-system]
requires = [
"setuptools>=59",
"wheel",
"pyarmor>=7.2.2"
]
build-backend = "pyarmor.build_meta" Unfortunately,
only see the pure Python project and a seemingly platform-indendent wheel is build ( I tried being a wise guy by adding a dummy from setuptools import Extension, setup
if __name__ == "__main__":
setup(
ext_modules=[Extension(name="dummy.module", sources=[])],
zip_safe=False,
) This actually works locally with
I guess it chokes on the fact that there are no sources. This could be a bug. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think this is an issue with pyarmor. Does it normally build platform dependent wheels? As far as I can tell, you don't want Python and platform dependent wheels, but only platform dependent wheels? I think you can meddle with the setuptools options for that. Here's an example of meddling with the platform tag: https://github.com/scikit-build/ninja-python-distributions/pull/85/files (not quite the same, but hopefully enough to get you started). You can use build as the backend, by the way: [tool.cibuildwheel] build-frontend = "build" Otherwise it just uses Though I think, since you are not building anything specific to platforms other than... Well, I'm not sure what, then you'd just need build; you don't need manylinux, etc. I think? |
Beta Was this translation helpful? Give feedback.
I think this is an issue with pyarmor. Does it normally build platform dependent wheels? As far as I can tell, you don't want Python and platform dependent wheels, but only platform dependent wheels? I think you can meddle with the setuptools options for that. Here's an example of meddling with the platform tag: https://github.com/scikit-build/ninja-python-distributions/pull/85/files (not quite the same, but hopefully enough to get you started). You can use build as the backend, by the way:
Otherwise it just uses
pip wheel
.Though I think, since you are not building anything specific to platforms other than... Well, I'm not sure what, then you'…