pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Do away with use of pip in setup.py.



Module Name:	pkgsrc-wip
Committed By:	Havard Eidnes <he%NetBSD.org@localhost>
Pushed By:	he
Date:		Wed Jun 27 00:42:21 2018 +0200
Changeset:	1b1c47bae08404d72b6f96c3a285fb0734ffe55d

Modified Files:
	py-napalm-eos/distinfo
Added Files:
	py-napalm-eos/patches/patch-setup.py

Log Message:
Do away with use of pip in setup.py.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1b1c47bae08404d72b6f96c3a285fb0734ffe55d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-napalm-eos/distinfo               |  1 +
 py-napalm-eos/patches/patch-setup.py | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)

diffs:
diff --git a/py-napalm-eos/distinfo b/py-napalm-eos/distinfo
index dd3eec0c94..c7bbeecbe1 100644
--- a/py-napalm-eos/distinfo
+++ b/py-napalm-eos/distinfo
@@ -4,3 +4,4 @@ SHA1 (napalm-eos-0.5.6.tar.gz) = e597b36e9920bcbae4c6462efff71bf642adbf75
 RMD160 (napalm-eos-0.5.6.tar.gz) = 7281b101341458cb99ef1f2631d424651924b146
 SHA512 (napalm-eos-0.5.6.tar.gz) = 56ce3d003edbc0b8befe0cc91e2921ab0976f73530e285eac21c216cf4e213e1024463a2b842a790eabe2251e01cb79acc299955b4ef44ece8ba57f68dca8243
 Size (napalm-eos-0.5.6.tar.gz) = 58667 bytes
+SHA1 (patch-setup.py) = acf54ad4a9689713b96d06b1b90a82e25d4c6cab
diff --git a/py-napalm-eos/patches/patch-setup.py b/py-napalm-eos/patches/patch-setup.py
new file mode 100644
index 0000000000..4f9981baef
--- /dev/null
+++ b/py-napalm-eos/patches/patch-setup.py
@@ -0,0 +1,22 @@
+$NetBSD$
+
+Avoid use of "pip" in setup.py.
+
+--- setup.py.orig	2017-03-17 11:55:29.000000000 +0000
++++ setup.py
+@@ -3,12 +3,12 @@
+ import uuid
+ 
+ from setuptools import setup, find_packages
+-from pip.req import parse_requirements
+ 
+ __author__ = 'David Barroso <dbarrosop%dravetech.com@localhost>'
+ 
+-install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())
+-reqs = [str(ir.req) for ir in install_reqs]
++with open("requirements.txt") as reqs_file:
++    install_reqs = reqs_file.readlines()
++reqs = install_reqs
+ 
+ setup(
+     name="napalm-eos",


Home | Main Index | Thread Index | Old Index