Bug 1329

Summary: On Fedora x86_64 python2.7 dir is misplaced on ./waf install
Product: ns-3 Reporter: Vedran Miletić <vedran>
Component: build systemAssignee: Gustavo J. A. M. Carneiro <gjcarneiro>
Status: RESOLVED FIXED    
Severity: major CC: ns-bugs
Priority: P5    
Version: pre-release   
Hardware: PC   
OS: Linux   

Description Vedran Miletić 2011-12-29 11:00:27 UTC
On Fedora x86_64 ./waf install should install python2.7 in lib64 instead of lib. IMHO, it would be best if this uses --libdir=... setting as it is used for libns3-*.so files.
Comment 1 Vedran Miletić 2011-12-29 11:00:47 UTC
Some additional information is here: http://fedoraproject.org/wiki/Packaging:Python
Comment 2 Gustavo J. A. M. Carneiro 2012-01-04 13:31:29 UTC
This "should" be fixed in ns-3-dev.  Please check.
Comment 3 Vedran Miletić 2012-01-04 14:45:06 UTC
Congratulations, almost perfect.

./waf configure --prefix=~/whatever

and

./waf configure --prefix=~/whatever --libdir=~/whatever/lib64

both result in:

$ ls ~/whatever/lib/python2.7/site-packages/ns/
__init__.py

$ ls ~/whatever/lib64/python2.7/site-packages/ns/
aodv.so          emu.so           network.so                tools.so
applications.so  energy.so        nix_vector_routing.so     topology_read.so
bridge.so        flow_monitor.so  olsr.so                   uan.so
click.so         internet.so      point_to_point_layout.so  visualizer.so
config_store.so  lte.so           point_to_point.so         wifi.so
core.py          mesh.so          propagation.so            wimax.so
_core.so         mobility.so      spectrum.so
csma.so          mpi.so           stats.so
dsdv.so          netanim.so       tap_bridge.so
Comment 4 Vedran Miletić 2012-01-04 16:24:43 UTC
And if I recall correctly, this file gets installed even with --disable-python.
Comment 5 Gustavo J. A. M. Carneiro 2012-01-04 20:56:54 UTC
(In reply to comment #4)
> And if I recall correctly, this file gets installed even with --disable-python.

This should not happen, looking at the code.

The ns/__init__.py problem should be fixed, though I don't have a system to test.
Comment 6 Vedran Miletić 2012-01-05 08:06:52 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > And if I recall correctly, this file gets installed even with --disable-python.
> 
> This should not happen, looking at the code.

It doesn't, I just checked. That was an issue with waf 1.5; it seems that you fixed it during upgrade to 1.6.

> The ns/__init__.py problem should be fixed, though I don't have a system to
> test.

It is. Thanks.