-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsetup.py
45 lines (37 loc) · 1.18 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
42
43
44
45
"""
Copyright (c) 2017, Jairus Martin.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
"""
import re
import os
from setuptools import setup, find_packages
#from distutils.extension import Extension
#from Cython.Build import cythonize
extensions = []
# extensions = cythonize([
# Extension("enamlnative.android.ndk",
# ["enamlnative/android/*.pyx"],
# libraries=["android"])
# ])
def find_version():
with open(os.path.join('src', 'enamlnative', '__init__.py')) as f:
for line in f:
m = re.search(r'version = [\'"](.+)[\'"]', line)
if m:
return m.group(1)
raise Exception("Couldn't find the version number")
setup(
name="enaml-native",
version=find_version(),
author="CodeLV",
author_email="[email protected]",
license='MIT',
url='https://codelv.com/projects/enaml-native/',
description="Build native mobile apps in python",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
python_requires='>=3.9',
packages=find_packages('src'),
package_dir={'': 'src'},
)