[94773] trunk/dports/python/py-astropy

robitaille at macports.org robitaille at macports.org
Fri Jun 29 08:18:17 PDT 2012


Revision: 94773
          https://trac.macports.org/changeset/94773
Author:   robitaille at macports.org
Date:     2012-06-29 08:18:17 -0700 (Fri, 29 Jun 2012)
Log Message:
-----------
py-astropy: added a patch to prevent legacy packages from being installed

Modified Paths:
--------------
    trunk/dports/python/py-astropy/Portfile

Added Paths:
-----------
    trunk/dports/python/py-astropy/files/
    trunk/dports/python/py-astropy/files/patch-astropy-setup_helpers.py.diff

Modified: trunk/dports/python/py-astropy/Portfile
===================================================================
--- trunk/dports/python/py-astropy/Portfile	2012-06-29 14:33:31 UTC (rev 94772)
+++ trunk/dports/python/py-astropy/Portfile	2012-06-29 15:18:17 UTC (rev 94773)
@@ -5,6 +5,7 @@
 PortGroup           python 1.0
 name                py-astropy
 version             0.1
+revision            1
 maintainers         robitaille
 
 categories-append   science
@@ -43,4 +44,6 @@
                     ${worksrcpath}/scripts/volint-ap
     }
 
+    patchfiles patch-astropy-setup_helpers.py.diff
+
 }

Added: trunk/dports/python/py-astropy/files/patch-astropy-setup_helpers.py.diff
===================================================================
--- trunk/dports/python/py-astropy/files/patch-astropy-setup_helpers.py.diff	                        (rev 0)
+++ trunk/dports/python/py-astropy/files/patch-astropy-setup_helpers.py.diff	2012-06-29 15:18:17 UTC (rev 94773)
@@ -0,0 +1,19 @@
+--- astropy/setup_helpers.py.orig	2012-06-29 17:08:50.000000000 +0200
++++ astropy/setup_helpers.py	2012-06-29 17:07:18.000000000 +0200
+@@ -316,11 +316,11 @@
+ 
+         if hasattr(setuppkg, 'get_package_data'):
+             package_data.update(setuppkg.get_package_data())
+-        if hasattr(setuppkg, 'get_legacy_alias'):
+-            pkg, dir = setuppkg.get_legacy_alias()
+-            if pkg is not None:
+-                packagenames.append(pkg)
+-                package_dirs[pkg] = dir
++        # if hasattr(setuppkg, 'get_legacy_alias'):
++        #     pkg, dir = setuppkg.get_legacy_alias()
++        #     if pkg is not None:
++        #         packagenames.append(pkg)
++        #         package_dirs[pkg] = dir
+ 
+     # Locate any .pyx files not already specified, and add their extensions in.
+     # The default include dirs include numpy to facilitate numerical work.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120629/68d1a340/attachment.html>


More information about the macports-changes mailing list