[csw-devel] SF.net SVN: gar:[21530] csw/mgar/pkg/lang-python/python/branches/python-2.7 /files/0001-manage-previous-site-package.patch

Maciej (Matchek) Bliziński maciej at opencsw.org
Mon Jul 22 10:27:37 CEST 2013


2013/7/19  <pfelecan at users.sourceforge.net>:
>  --- a/Lib/site.py
>  +++ b/Lib/site.py
>  @@ -292,6 +292,7 @@ def getsitepackages():
>                                           "python" + sys.version[:3],
>                                           "site-packages"))
>               sitepackages.append(os.path.join(prefix, "lib", "site-python"))
> -+            sitepackages.append(os.path.join(prefix, "lib", "python"))
> ++            sitepackages.append(os.path.join(prefix, "lib", "python/site-packages"))

It's a minor nitpick: the intention between os.path.join is that you
do not use the directory separator. See two lines above for an
example. It's supposed to be something like this:

sitepackages.append(os.path.join(prefix, "lib", "python", "site-packages"))


More information about the devel mailing list