summaryrefslogtreecommitdiff
path: root/textproc/py-citeproc-py/files/patch-setup.py
blob: 971a6cf5c233200f5a9c895703c2d615684f431b (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
--- setup.py.orig	2021-05-27 17:28:02 UTC
+++ setup.py
@@ -30,7 +30,7 @@ os.chdir(BASE_PATH)
 # inspired by http://dcreager.net/2010/02/10/setuptools-git-version-numbers/
 try:
     print('Attempting to get version number from git...')
-    git = Popen(['git', 'describe', '--always', '--dirty'],
+    git = Popen(['/usr/bin/false', 'describe', '--always', '--dirty'],
                 stdout=PIPE, stderr=sys.stderr)
     if git.wait() != 0:
         raise OSError
@@ -85,14 +85,13 @@ setup(
     name='citeproc-py',
     version=__version__,
     cmdclass = dict(build_py=custom_build_py, develop=custom_develop),
-    packages=find_packages(),
     package_data={PACKAGE: ['data/locales/*.xml',
                             'data/locales/locales.json',
                             'data/schema/*.rng',
                             'data/styles/*.csl']},
     python_requires='>=3.6',
     scripts=['bin/csl_unsorted'],
-    setup_requires=['rnc2rng>=2.6.1,!=2.6.2'],
+    setup_requires=['rnc2rng'],
     install_requires=['lxml'],
     provides=[PACKAGE],
     #test_suite='nose.collector',