slackbuilds/python/tweepy/update_req_for_pip6.patch

22 lines
600 B
Diff

diff --git a/setup.py b/setup.py
index 2de2d05..3b3b807 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#from distutils.core import setup
-import re
+import re, uuid
from setuptools import setup, find_packages
from pip.req import parse_requirements
@@ -14,7 +14,7 @@ if mo:
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
-install_reqs = parse_requirements('requirements.txt')
+install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())
reqs = [str(req.req) for req in install_reqs]
setup(name="tweepy",