aboutsummaryrefslogtreecommitdiff
path: root/print/py-ttfautohint-py/files/patch-setup.py
blob: ea98b5613b8890dd96bbcdbdd66c729afb065ca4 (plain) (blame)
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
47
--- setup.py.orig	2021-08-12 11:55:42 UTC
+++ setup.py
@@ -11,19 +11,8 @@ from io import open
 
 
 cmdclass = {}
-try:
-    from wheel.bdist_wheel import bdist_wheel
-except ImportError:
-    print("warning: wheel package is not installed", file=sys.stderr)
-else:
-    class UniversalBdistWheel(bdist_wheel):
 
-        def get_tag(self):
-            return ('py2.py3', 'none',) + bdist_wheel.get_tag(self)[2:]
 
-    cmdclass['bdist_wheel'] = UniversalBdistWheel
-
-
 class SharedLibrary(Extension):
 
     if sys.platform == "darwin":
@@ -74,7 +63,6 @@ class SharedLibBuildExt(build_ext):
                   verbose=self.verbose, dry_run=self.dry_run)
 
 
-cmdclass['build_ext'] = SharedLibBuildExt
 
 env = dict(os.environ)
 if sys.platform == "win32":
@@ -109,7 +97,7 @@ with open("README.rst", "r", encoding="utf-8") as read
 
 setup(
     name="ttfautohint-py",
-    use_scm_version=True,
+    use_scm_version={"fallback_version": "%%PORTVERSION%%"},
     description=("Python wrapper for ttfautohint, "
                  "a free auto-hinter for TrueType fonts"),
     long_description=long_description,
@@ -120,7 +108,6 @@ setup(
     platforms=["posix", "nt"],
     package_dir={"": "src/python"},
     packages=find_packages("src/python"),
-    ext_modules=[libttfautohint],
     zip_safe=False,
     cmdclass=cmdclass,
     setup_requires=['setuptools_scm'],