setuptools-zig-build 0.2.0__tar.gz → 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: setuptools_zig_build
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: A setuptools extension, for building cpython extensions with zig build
5
5
  Home-page: https://codeberg.org/dasimmet/setuptools-zig-build
6
6
  Author-email: dasimmet@gmail.com
@@ -32,10 +32,16 @@ Dynamic: summary
32
32
 
33
33
  A setuptools extension, for building cpython extensions with zig build,
34
34
  enabling simple source-only pip distributions that compile at install time.
35
+ This is my take on [deinventing the wheel](https://www.youtube.com/watch?v=HPmefnqirHk)
35
36
 
36
- check out [zig-zon](https://gitlab.com/dasimmet/python-zig-zon) for an example
37
+ check out [zig-zon](https://codeberg.org/dasimmet/python-zig-zon/) for a full example.
37
38
 
38
- ## Example `setup.py`
39
+ ## Example
40
+
41
+ Your project needs to have:
42
+ - `setup.py` to configure this setuptools extension to run during python's wheel build
43
+ - `build.zig` to configure the build of the shared library
44
+ - `build.zig.zon` optionally - to specify zig dependencies
39
45
 
40
46
  ```python
41
47
  from setuptools import Extension
@@ -45,8 +51,9 @@ setup(
45
51
  name='zig-zon',
46
52
  packages=[],
47
53
  zig_build={
48
- # stores zig's depdendencies in python's sdist. requires a call to
54
+ # stores zig's depdendency pacakges in python's sdist. This requires a call to
49
55
  # CPython.addSdistList(b); in `build.zig`
56
+ # If set to False, potential dependencies will be downloaded by zig instead.
50
57
  "sdist": True,
51
58
  # tries to import 'ziglang' to get a zig compiler when building wheel
52
59
  "use_ziglang_python_package": True,
@@ -54,11 +61,12 @@ setup(
54
61
  "optimize": "ReleaseSmall",
55
62
  # passes -Dversion=<pip package version> to zig build
56
63
  "pass_version_option": True,
57
- # extra arguments to zig build
64
+ # extra arguments to zig build. In this case we pass the `install` and `test` steps
58
65
  'extra_args': [
59
66
  "install", "test",
60
67
  ],
61
68
  },
69
+ # Names of the libraries your `build.zig` will produce, and this module will install
62
70
  ext_modules=[Extension('zig_zon', [])],
63
71
  )
64
72
  ```
@@ -2,10 +2,16 @@
2
2
 
3
3
  A setuptools extension, for building cpython extensions with zig build,
4
4
  enabling simple source-only pip distributions that compile at install time.
5
+ This is my take on [deinventing the wheel](https://www.youtube.com/watch?v=HPmefnqirHk)
5
6
 
6
- check out [zig-zon](https://gitlab.com/dasimmet/python-zig-zon) for an example
7
+ check out [zig-zon](https://codeberg.org/dasimmet/python-zig-zon/) for a full example.
7
8
 
8
- ## Example `setup.py`
9
+ ## Example
10
+
11
+ Your project needs to have:
12
+ - `setup.py` to configure this setuptools extension to run during python's wheel build
13
+ - `build.zig` to configure the build of the shared library
14
+ - `build.zig.zon` optionally - to specify zig dependencies
9
15
 
10
16
  ```python
11
17
  from setuptools import Extension
@@ -15,8 +21,9 @@ setup(
15
21
  name='zig-zon',
16
22
  packages=[],
17
23
  zig_build={
18
- # stores zig's depdendencies in python's sdist. requires a call to
24
+ # stores zig's depdendency pacakges in python's sdist. This requires a call to
19
25
  # CPython.addSdistList(b); in `build.zig`
26
+ # If set to False, potential dependencies will be downloaded by zig instead.
20
27
  "sdist": True,
21
28
  # tries to import 'ziglang' to get a zig compiler when building wheel
22
29
  "use_ziglang_python_package": True,
@@ -24,11 +31,12 @@ setup(
24
31
  "optimize": "ReleaseSmall",
25
32
  # passes -Dversion=<pip package version> to zig build
26
33
  "pass_version_option": True,
27
- # extra arguments to zig build
34
+ # extra arguments to zig build. In this case we pass the `install` and `test` steps
28
35
  'extra_args': [
29
36
  "install", "test",
30
37
  ],
31
38
  },
39
+ # Names of the libraries your `build.zig` will produce, and this module will install
32
40
  ext_modules=[Extension('zig_zon', [])],
33
41
  )
34
42
  ```
@@ -2,7 +2,7 @@ from setuptools import setup
2
2
 
3
3
  setup(
4
4
  name='setuptools_zig_build',
5
- version="0.2.0",
5
+ version="0.2.2",
6
6
  author_email='dasimmet@gmail.com',
7
7
  description='A setuptools extension, for building cpython extensions with zig build',
8
8
  long_description=open("README.md").read(),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: setuptools_zig_build
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: A setuptools extension, for building cpython extensions with zig build
5
5
  Home-page: https://codeberg.org/dasimmet/setuptools-zig-build
6
6
  Author-email: dasimmet@gmail.com
@@ -32,10 +32,16 @@ Dynamic: summary
32
32
 
33
33
  A setuptools extension, for building cpython extensions with zig build,
34
34
  enabling simple source-only pip distributions that compile at install time.
35
+ This is my take on [deinventing the wheel](https://www.youtube.com/watch?v=HPmefnqirHk)
35
36
 
36
- check out [zig-zon](https://gitlab.com/dasimmet/python-zig-zon) for an example
37
+ check out [zig-zon](https://codeberg.org/dasimmet/python-zig-zon/) for a full example.
37
38
 
38
- ## Example `setup.py`
39
+ ## Example
40
+
41
+ Your project needs to have:
42
+ - `setup.py` to configure this setuptools extension to run during python's wheel build
43
+ - `build.zig` to configure the build of the shared library
44
+ - `build.zig.zon` optionally - to specify zig dependencies
39
45
 
40
46
  ```python
41
47
  from setuptools import Extension
@@ -45,8 +51,9 @@ setup(
45
51
  name='zig-zon',
46
52
  packages=[],
47
53
  zig_build={
48
- # stores zig's depdendencies in python's sdist. requires a call to
54
+ # stores zig's depdendency pacakges in python's sdist. This requires a call to
49
55
  # CPython.addSdistList(b); in `build.zig`
56
+ # If set to False, potential dependencies will be downloaded by zig instead.
50
57
  "sdist": True,
51
58
  # tries to import 'ziglang' to get a zig compiler when building wheel
52
59
  "use_ziglang_python_package": True,
@@ -54,11 +61,12 @@ setup(
54
61
  "optimize": "ReleaseSmall",
55
62
  # passes -Dversion=<pip package version> to zig build
56
63
  "pass_version_option": True,
57
- # extra arguments to zig build
64
+ # extra arguments to zig build. In this case we pass the `install` and `test` steps
58
65
  'extra_args': [
59
66
  "install", "test",
60
67
  ],
61
68
  },
69
+ # Names of the libraries your `build.zig` will produce, and this module will install
62
70
  ext_modules=[Extension('zig_zon', [])],
63
71
  )
64
72
  ```