FreeBSD Bugzilla – Attachment 144430 Details for
Bug 191637
devel/py-setuptools: Fix bytecompiled files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix-py-setuptools-namespace-packages.patch
fix-py-setuptools-namespace-packages.patch (text/plain), 2.08 KB, created by
Melvyn Sopacua
on 2014-07-05 17:04:22 UTC
(
hide
)
Description:
fix-py-setuptools-namespace-packages.patch
Filename:
MIME Type:
Creator:
Melvyn Sopacua
Created:
2014-07-05 17:04:22 UTC
Size:
2.08 KB
patch
obsolete
>diff -r 63528a5e5d19 -r a745a5a3e96d devel/py-setuptools/Makefile >--- a/devel/py-setuptools/Makefile Sat Jul 05 09:54:36 2014 +0200 >+++ b/devel/py-setuptools/Makefile Sat Jul 05 18:49:39 2014 +0200 >@@ -2,6 +2,7 @@ > > PORTNAME= setuptools > PORTVERSION= 5.1 >+PORTREVISION= 1 > CATEGORIES= devel python > MASTER_SITES= CHEESESHOP > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >diff -r 63528a5e5d19 -r a745a5a3e96d devel/py-setuptools/files/patch-setuptools_command_install_lib.py >--- /dev/null Thu Jan 01 00:00:00 1970 +0000 >+++ b/devel/py-setuptools/files/patch-setuptools_command_install_lib.py Sat Jul 05 18:49:39 2014 +0200 >@@ -0,0 +1,35 @@ >+--- setuptools/command/install_lib.py.orig Mon Jun 30 13:30:09 2014 +0200 >++++ setuptools/command/install_lib.py Sat Jul 05 17:43:39 2014 +0200 >+@@ -1,5 +1,5 @@ >+ import distutils.command.install_lib as orig >+-import os >++import os, imp >+ >+ class install_lib(orig.install_lib): >+ """Don't add compiled flags to filenames of non-Python files""" >+@@ -16,12 +16,24 @@ >+ nsp = self.distribution.namespace_packages >+ svem = (nsp and self.get_finalized_command('install') >+ .single_version_externally_managed) >++ exclude_names = ['__init__.py', '__init__.pyc', '__init__.pyo'] >++ if hasattr(imp, 'get_tag') : >++ exclude_names.extend(( >++ os.path.join( >++ '__pycache__', >++ '__init__.' + imp.get_tag() + '.pyc' >++ ), >++ os.path.join( >++ '__pycache__', >++ '__init__.' + imp.get_tag() + '.pyo' >++ ), >++ )) >+ if svem: >+ for pkg in nsp: >+ parts = pkg.split('.') >+ while parts: >+ pkgdir = os.path.join(self.install_dir, *parts) >+- for f in '__init__.py', '__init__.pyc', '__init__.pyo': >++ for f in exclude_names : >+ exclude[os.path.join(pkgdir,f)] = 1 >+ parts.pop() >+ return exclude >--- fix-py-setuptools-namespace-packages.patch ends here ---
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 191637
:
144430
|
144823