Opened 12 years ago

Last modified 11 years ago

#32147 closed defect

gnuradio 3.3.0 installs to the wrong site-packages folder — at Version 1

Reported by: nicholas.pate@… Owned by: michaelld@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: gnuradio

Description (last modified by ryandesign (Ryan Carsten Schmidt))

In Summer 2011, python ports were merged into a single portgroup and the site-packages folder for python26 was moved (see wiki:Python). However, gnuradio 3.3.0 and all of its component ports (gnuradio-wxgui, etc.) still install to the old location, /opt/local/lib/python2.6/site-packages/, where the python interpreter cannot find them. The correct site-packages folder, per the wiki link above, is /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages.

Presumably the fix needs to happen in the Portfile, which I suspect is hardcoded for the old destination. The correct behavior would be declaring the python portgroup and then using the python.pkgd variable, which will always point to the correct site-packages. I can't for the life of me figure out where the gnuradio Portfile is stored to go look at this myself.

Adding /opt/local/lib/python2.6/site-packages/ to the PYTHONPATH environment variable functions as a workaround.

Change History (1)

comment:1 in reply to:  description Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: gnuradio removed
Owner: changed from macports-tickets@… to michaelld@…

Replying to nicholas.pate@…:

I can't for the life of me figure out where the gnuradio Portfile is stored to go look at this myself.

The command port file gnuradio will show you.

Michael, if you need to make a change to gnuradio and increase its revision to fix this, could you take the opportunity to make gnuradio install into an unversioned docdir, and make python27 the default?

Note: See TracTickets for help on using tickets.