[Lunar-commits] <moonbase-other> setuptools: Adjusting for Python-3

Dennis Veatch dennisveatch at bellsouth.net
Sat Nov 15 12:28:36 CET 2014


commit 25b17c6fa5cdf4e899b982fd9e92e289bcd2df17
Author: Dennis Veatch <dennisveatch at bellsouth.net>
Date: Sat, 15 Nov 2014 06:28:21 -0500
URL: https://github.com/lunar-linux/moonbase-other/commit/25b17c6fa5cdf4e899b982fd9e92e289bcd2df17

setuptools: Adjusting for Python-3
---
  python/setuptools/BUILD   | +7/-2     
  python/setuptools/DEPENDS | +2/-0     
  2 files changed, 9 insertions(+), 2 deletions(-)

--- a/python/setuptools/BUILD
+++ b/python/setuptools/BUILD
@@ -1,4 +1,3 @@
-(
 
   python setup.py build &&
 
@@ -8,4 +7,10 @@
   # http://mail.python.org/pipermail/distutils-sig/2008-October/010208.html
   python setup.py install --root=/
 
-) > $C_FIFO 2>&1
+  if in_depends $MODULE Python-3 ; then
+    sed -i -e "s|^#\!.*/usr/bin/python|#!/usr/bin/python3|" setuptools/tests/test_resources.py &&
+    sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" setuptools/command/easy_install.py &&
+    python3 setup.py build &&
+    prepare_install &&
+    python3 setup.py install --root=/
+ fi
--- a/python/setuptools/DEPENDS
+++ b/python/setuptools/DEPENDS
@@ -1 +1,3 @@
 depends Python
+
+optional_depends "Python-3" "" "" "For Python-3 support" n




More information about the Lunar-commits mailing list