updated to Python 3.14 and Zig 0.15
I have been working on this, making sure Python 3.9-3.14 work with the examples and wilth Zig 0.11-0.15, which it now does. Since all the combinations work, and I don't have to have a specific version of zig with a specific setuptools-zig (or vv.), I decided against the optional extension for now. A user has to specify the build dependency anyway and it doesn't really differ to have: setup_requires=['setuptools-zig', 'ziglang'], instead of setup_requires=['setuptools-zig[ziglang]'], and with the...
Hi, I have done some testing, and would prefer not to couple ziglang and setuptools-zig versions tightly. Rather leave it to the consuming package and have it as a separate build-dependency next to it. So my idea was to add a boolean option on the build_zig config to use whatever version is installed alongside setuptools-zig and keep the PY_ZIG usage the default. Something like this: dasimmet / setuptools-zig - Code / [5d9822] /setuptools_zig.py https://sourceforge.net/u/dasimmet/setuptools-zig/ci/default/tree/setuptools_zig.py#l31...
Hi Tobias, I somehow missed that the Zig compiler package (ziglang) had been uploaded to PyPI when I made the 0.2.0 release. I have considered this before, but never got to a decision, primarily because I don't want to force people to install ziglang to every virtual environment, if they already have the file somewhere global. Reconsidering this, making the package optional is probably the way to go (i.e. pip install setuptools-zig[ziglang]) I have to check, but should try to be able get the correct...
Support the ziglang python package
I was able to solve this with the following patch: diff -r 85a4f0350abb setuptools_zig.py --- a/setuptools_zig.py Fri Dec 04 22:16:55 2020 +0100 +++ b/setuptools_zig.py Sun Mar 21 15:16:38 2021 -0700 @@ -29,7 +29,7 @@ target = Path(self.get_ext_fullpath(ext.name)) zig = os.environ.get('PY_ZIG', 'zig') # override zig in path with specific version - bld_cmd = [zig, 'build-lib', '-dynamic', '-DPYHEXVER={}'.format(sys.hexversion), '--name', output.stem] + bld_cmd = [zig, 'build-lib', '-dynamic', '-DPYHEXVER={}'.format(sys.hexversion),...
macOS: Building module fails
Linux: @cImport requires compiling with "--library c"
clean up zig only version
Added tag 0.1.3 for changeset 5686501bd8f6
pypi img
corrected classifier, added long desc
Added tag 0.1.1 for changeset 5c90b4e0d69f
initial
Added tag 0.1.0 for changeset bd93a83af158
links for _README.ryd