diff options
Diffstat (limited to 'dev-python/pycxx/files/pycxx-6.2.3-installation.patch')
-rw-r--r-- | dev-python/pycxx/files/pycxx-6.2.3-installation.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-python/pycxx/files/pycxx-6.2.3-installation.patch b/dev-python/pycxx/files/pycxx-6.2.3-installation.patch new file mode 100644 index 00000000000..5f6bfa74f4b --- /dev/null +++ b/dev-python/pycxx/files/pycxx-6.2.3-installation.patch @@ -0,0 +1,25 @@ +--- setup.py ++++ setup.py +@@ -3,10 +3,18 @@ + from distutils.command.install import install + from distutils.core import setup + +-headers = (glob( os.path.join( "CXX","*.hxx" ) ) +- +glob( os.path.join( "CXX","*.h" ) )) +-sources = (glob( os.path.join( "Src", "*.cxx" ) ) +- +glob( os.path.join( "Src", "*.c" ) )) ++headers = (glob( os.path.join( "CXX", "Python%s" % sys.version_info[0], "*.hxx" ) ) ++ +glob( os.path.join( "CXX", "Python%s" % sys.version_info[0], "*.h" ) )) ++headers += [header for header in ++ glob( os.path.join( "CXX", "*.hxx" ) ) + ++ glob( os.path.join( "CXX", "*.h" ) ) ++ if os.path.sep.join((os.path.split(header)[0], "Python%s" % sys.version_info[0], os.path.split(header)[1])) not in headers] ++sources = (glob( os.path.join( "Src", "Python%s" % sys.version_info[0], "*.cxx" ) ) ++ +glob( os.path.join( "Src", "Python%s" % sys.version_info[0], "*.c" ) )) ++sources += [source for source in ++ glob( os.path.join( "Src", "*.cxx" ) ) + ++ glob( os.path.join( "Src", "*.c" ) ) ++ if os.path.sep.join((os.path.split(source)[0], "Python%s" % sys.version_info[0], os.path.split(source)[1])) not in sources] + + + class my_install (install): |