Opened 12 years ago

Closed 12 years ago

#34437 closed defect (fixed)

py-scikits-learn permissions error for installed files

Reported by: michelle.lynn.gill@… Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: haspatch Cc:
Port: py-sckits-learn

Description

The permissions for the files associated with the egg installed for py-scikits-learn (scikit_learn-0.11-py2.7.egg-info for python 2.7) need to be adjusted so that group and other have read permissions. Otherwise, the following error is produced when importing setuptools:

Permission denied: '/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scikit_learn-0.11-py2.7.egg-info/namespace_packages.txt'

I have added a line to the attached Portfile diff which adjusts the permissions so that group and other have read permissions for files in the egg, which is the same permissions as the files in the egg associated with py-scikits-statsmodels.

I have verified that this changes fixes the error encountered upon importing secuptools.

Attachments (2)

Portfile.diff (598 bytes) - added by michelle.lynn.gill@… 12 years ago.
Portfile.2.diff (604 bytes) - added by michelle.lynn.gill@… 12 years ago.

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by michelle.lynn.gill@…

Attachment: Portfile.diff added

Changed 12 years ago by michelle.lynn.gill@…

Attachment: Portfile.2.diff added

comment:1 Changed 12 years ago by michelle.lynn.gill@…

Updated the diff file (to Portfile.2.diff) as I forgot to add the version variable to the egg name. Please disregard the original file, Portfile.diff.

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: stromnov removed
Keywords: haspatch added
Owner: changed from macports-tickets@… to stromnov@…

The Cc field must contain complete email addresses.

comment:3 Changed 12 years ago by stromnov (Andrey Stromnov)

Resolution: fixed
Status: newclosed

Thanks!

Committed in r93113.

Note: See TracTickets for help on using tickets.