[75629] trunk/dports/python/py26-pyx

jmr at macports.org jmr at macports.org
Tue Feb 1 13:18:29 PST 2011


Revision: 75629
          http://trac.macports.org/changeset/75629
Author:   jmr at macports.org
Date:     2011-02-01 13:18:29 -0800 (Tue, 01 Feb 2011)
Log Message:
-----------
py26-pyx: patchfile

Added Paths:
-----------
    trunk/dports/python/py26-pyx/files/
    trunk/dports/python/py26-pyx/files/setup.py.diff

Added: trunk/dports/python/py26-pyx/files/setup.py.diff
===================================================================
--- trunk/dports/python/py26-pyx/files/setup.py.diff	                        (rev 0)
+++ trunk/dports/python/py26-pyx/files/setup.py.diff	2011-02-01 21:18:29 UTC (rev 75629)
@@ -0,0 +1,30 @@
+--- setup.py.orig	2006-05-24 23:33:56.000000000 +1000
++++ setup.py	2011-02-02 08:09:03.000000000 +1100
+@@ -21,6 +21,7 @@
+ import ConfigParser
+ import sys, os
+ import pyx
++from distutils.sysconfig import get_config_vars
+ 
+ #
+ # build list of extension modules
+@@ -75,7 +76,7 @@
+ 
+ # Note that on windows we can't install to absolute paths. Hence
+ # we put the global pyxrc into the share directory as well.
+-adddatafiles("pyxrcdir", os.name != "nt" and "/etc" or "share/pyx", ["pyxrc"])
++adddatafiles("pyxrcdir", os.name != "nt" and "__PREFIX__/etc" or "share/pyx", ["pyxrc"])
+ 
+ ################################################################################
+ # extend install commands to overwrite siteconfig.py during build and install
+@@ -123,9 +124,7 @@
+             # (the following four lines are copied from within the install_data.run loop)
+             dir = convert_path(dir)
+             if not os.path.isabs(dir):
+-                dir = os.path.join(self.install_dir, dir)
+-            elif self.root:
+-                dir = change_root(self.root, dir)
++                dir = os.path.join(get_config_vars('prefix')[0], dir)
+ 
+             self.siteconfiglines.append("%s = '%s'\n" % (siteconfignames[files], dir))
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110201/08ac864c/attachment.html>


More information about the macports-changes mailing list