-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
30 lines (24 loc) · 717 Bytes
/
setup.py
File metadata and controls
30 lines (24 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import os
from setuptools import setup
def package_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join("..", path, filename))
return paths
extra_files = package_files("cpp2py/template_data")
if __name__ == "__main__":
setup(
name="cpp2py",
version="0.1",
scripts=[f"bin{os.sep}cpp2py"],
packages=[
"cpp2py",
"cpp2py.generator",
"cpp2py.parser",
"cpp2py.process",
"cpp2py.typesystem",
],
package_data={"cpp2py": extra_files},
requires=["numpy", "cython", "Jinja2"],
)