We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2774517 commit 9020961Copy full SHA for 9020961
setup.py
@@ -1,6 +1,7 @@
1
#!/usr/bin/env python3
2
from setuptools import setup, Extension
3
import platform
4
+import pathlib
5
6
7
def check_platform():
@@ -11,20 +12,7 @@ def check_platform():
11
12
13
check_platform()
14
-sources = [
15
- "framebuffers.c",
16
- "module_pyfb.c",
17
- "color.c",
18
- "paint.c"
19
-]
20
-
21
-# Add prefix
22
-src_prefix = "native/"
23
-src = []
24
25
-for i in sources:
26
- src.append(src_prefix + i)
27
+src = list(pathlib.Path('native').glob("*.c"))
28
29
setup(name="pyframebuffer",
30
version="1.0",
0 commit comments