[MacPorts] #32147: gnuradio 3.3.0 installs to the wrong site-packages folder

MacPorts noreply at macports.org
Sun Nov 20 00:34:32 PST 2011


#32147: gnuradio 3.3.0 installs to the wrong site-packages folder
-------------------------------------+--------------------------------------
 Reporter:  nicholas.pate@…          |       Owner:  michaelld@…           
     Type:  defect                   |      Status:  new                   
 Priority:  Normal                   |   Milestone:                        
Component:  ports                    |     Version:  2.0.3                 
 Keywords:                           |        Port:  gnuradio              
-------------------------------------+--------------------------------------
Changes (by ryandesign@…):

  * keywords:  gnuradio =>
  * owner:  macports-tickets@… => michaelld@…


Old description:

> In Summer 2011, python ports were merged into a single portgroup and the
> site-packages folder for python26 was moved (see
> https://trac.macports.org/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.

New description:

 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.

--

Comment:

 Replying to [ticket:32147 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?

-- 
Ticket URL: <https://trac.macports.org/ticket/32147#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list