File: 675bba17d3af7de14d0db52c01a83b7cc163e59e.patch

package info (click to toggle)
pyiosxr 0.52-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 176 kB
  • sloc: python: 841; makefile: 3
file content (31 lines) | stat: -rw-r--r-- 974 bytes parent folder | download | duplicates (2)
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
From b63443b4d09890a1de2b64b805ec4104a3ae1c36 Mon Sep 17 00:00:00 2001
From: Patrick Ogenstad <patrick@ogenstad.com>
Date: Sun, 15 Apr 2018 06:31:57 +0200
Subject: [PATCH] Fix installation issue with pip 10, test on py3.6

---
 setup.py    | 9 ++-------
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/setup.py b/setup.py
index b1f7568..290911b 100644
--- a/setup.py
+++ b/setup.py
@@ -18,15 +18,10 @@
 # the License.
 
 from setuptools import setup, find_packages
-from pip.req import parse_requirements
-import uuid
 
-# parse_requirements() returns generator of pip.req.InstallRequirement objects
-install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())
 
-# reqs is a list of requirement
-# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
-reqs = [str(ir.req) for ir in install_reqs]
+with open("requirements.txt", "r") as fs:
+    reqs = [r for r in fs.read().splitlines() if (len(r) > 0 and not r.startswith("#"))]
 
 version = '0.52'