-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathsetup.py
More file actions
23 lines (21 loc) · 549 Bytes
/
setup.py
File metadata and controls
23 lines (21 loc) · 549 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import toml
from setuptools import Extension, setup
with open("./README.md") as f:
long_desc: str = f.read()
if __name__ == "__main__":
with open("./pyproject.toml", "r") as f:
data = toml.load(f)
setup(
name="pointers.py",
version="3.0.1",
packages=["pointers"],
project_urls=data["project"]["urls"],
package_dir={"": "src"},
license="MIT",
ext_modules=[
Extension(
"_pointers",
["./src/mod.c"]
)
],
)