forked from justvanrossum/fontgoggles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (36 loc) · 1.17 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
#!/usr/bin/env python
from distutils.command.build import build as _build
import re
from setuptools import setup, find_packages
import subprocess
class build(_build):
def run(self):
# Build our C library
subprocess.check_call(['./Turbo/build_lib.sh'])
_build.run(self)
_versionRE = re.compile(r'__version__\s*=\s*\"([^\"]+)\"')
with open('Lib/fontgoggles/__init__.py', "r") as fg_init:
match = _versionRE.search(fg_init.read())
assert match is not None, "fontgoggles.__version__ not found"
fg_version = match.group(1)
setup(
name="fontgoggles",
use_scm_version={"write_to": "Lib/fontgoggles/_version.py"},
version=fg_version,
description="fontgoggles is the main library for the FontGoggles application.",
author="Just van Rossum",
author_email="[email protected]",
url="https://github.com/justvanrossum/fontgoggles",
package_dir={"": "Lib"},
packages=find_packages("Lib"),
package_data={'fontgoggles.mac': ['*.dylib']},
install_requires=[
],
extras_require={
},
setup_requires=["setuptools_scm"],
python_requires=">=3.7",
classifiers=[
],
cmdclass={'build': build},
)