youlizhao / ofdm

OFDM programs for USRP UHD version
12 stars 5 forks source link

python site-packages dist-packages problem #2

Closed youlizhao closed 12 years ago

youlizhao commented 12 years ago

When I install ftw_80211_ofdm_tx files, the modules are always installed in pythonX*Y/site-packages. To avoid adding new PYTHONPATH, I want to install them into dist-packages. The reason why I want to do that is because when I write from gnuradio import ftw. The program is not so smart to recogize it should use dist-packages/ or site-packages. In other words, the system only recognize one folder.

To tackle this problem, I change site-packages to dist-packages in ftw_80211_ofdm_tx installation files, e.g., configure. I can use find . | xargs grep "site-packages" to find all files. However, it does not work. After configuration, site-packages appear again. It is weired.

Any hints?

youlizhao commented 12 years ago

Fixed. Modify config/gr_python.m4 (e.g., you can get this file from latest gnuradio tar gz).