Opened 10 years ago
Closed 10 years ago
#47601 closed defect (fixed)
libftdi1 @1.2_1: Python package misplaced
Reported by: | IvoClarysse (Ivo Clarysse) | Owned by: | nerdling (Jeremy Lavergne) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.3 |
Keywords: | python | Cc: | |
Port: | libftdi |
Description
The libftdi1 subport of the libftdi port installs Python site package files in
/opt/local/lib/python2.7/site-packages
instead of
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
As a result, the installed examples fail to import the ftdi1.py module installed in the /opt/local/lib/python2.7/site-packages directory:
$ /opt/local/bin/python2.7 /opt/local/share/libftdi/examples/complete.py Traceback (most recent call last): File "/opt/local/share/libftdi/examples/complete.py", line 13, in <module> import ftdi1 as ftdi ImportError: No module named ftdi1
Change History (3)
comment:1 Changed 10 years ago by nerdling (Jeremy Lavergne)
Cc: | snc@… removed |
---|---|
Owner: | changed from macports-tickets@… to snc@… |
Priority: | Low → Normal |
Status: | new → assigned |
comment:2 Changed 10 years ago by nerdling (Jeremy Lavergne)
comment:3 Changed 10 years ago by nerdling (Jeremy Lavergne)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Think I got it in r135786.
Note: See
TracTickets for help on using
tickets.
The
python/CMakeLists.txt
finds the incorrect path fromdistutils.sysconfig.get_python_lib(plat_specific=True, prefix='${prefix}')
.