-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
41 lines (35 loc) · 1.26 KB
/
setup.py
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
#!/usr/bin/env python
from os import path
import sys
from setuptools import setup
from typing import List
try:
from setuptools_rust import RustExtension, Binding
except ImportError:
import subprocess
errno = subprocess.call([sys.executable, "-m", "pip", "install", "setuptools-rust"])
if errno:
print("Please install setuptools-rust package")
raise SystemExit(errno)
else:
from setuptools_rust import RustExtension, Binding
this_directory = path.abspath(path.dirname(__file__))
setup_requires = ["setuptools-rust>=0.10.1", "wheel"]
install_requires : List[str] = []
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name="pyaoaddons",
packages=["pyaoaddons"],
author="Wiktor Mazur",
author_email="[email protected]",
url="https://github.com/mazurwiktor/aoaddons-python",
long_description=long_description,
long_description_content_type='text/markdown',
rust_extensions=[RustExtension("libpyaoaddons", binding=Binding.RustCPython)],
install_requires=install_requires,
setup_requires=setup_requires,
include_package_data=True,
version="0.2.8",
zip_safe=False,
)