-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (43 loc) · 1.28 KB
/
setup.py
File metadata and controls
46 lines (43 loc) · 1.28 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from setuptools import setup, Extension
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
import os
def copy_files():
dir_path = 'topics-and-qrels'
base_dir = os.path.join('./pya0', dir_path)
for (dirpath, dirnames, files) in os.walk(base_dir):
for f in files:
yield os.path.join(dirpath.split('/', 1)[1], f)
setup(
name = 'pya0',
version = '0.3.3',
author = 'Wei Zhong',
author_email = "clock126@126.com",
description = 'Approach Zero Python Interface',
long_description = long_description,
long_description_content_type = "text/markdown",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.5',
packages=[''],
package_data={
'': ['pya0', 'pya0/*'] + [f for f in copy_files()],
},
install_requires=[
'tqdm',
'pandas',
'nltk',
],
native_module = [
Extension(
name='',
sources = ['main.py.c'],
include_dirs = ["."],
libraries=['event', 'mpi', 'stdc++', 'm', 'pthread', 'fl', 'rt', 'xml2', 'z'], # order matters
library_dirs=[]
)
]
)