DragonBooster / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

Python support fails on Ubuntu 10.10 #160

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. build libkml trunk v863 on a new Ubuntu 10.10
2. cd src/swig; make && make install # for good measure
3. add a libkml.conf in /etc/ld.so.conf.d with the line
      /usr/local/lib/libkml
$. su ldconfig

What is the expected output? What do you see instead?
notice python support files in 
  /usr/local/lib/python2.6/site-packages/

no good.. ?!?
  sudo mv /usr/local/lib/python2.6/site-packages/* /usr/local/lib/python2.6/dist-packages/

all is well ?!?

What version of the product are you using? On what operating system?
Ubuntu 10.10

Did you run the unit test suite that comes with the project? Did all tests pass?
python
>> import kmldom

now works..
misc test files pass..

Please provide any additional information below.

I admit I lose track of the python details of the day..
but I vaguely recalled reading that site-packages was being deprecated.. (?)
I noted dist-packages there, so I tried this.. and it appears to work?
clarification welcome..

Original issue reported on code.google.com by brian.da...@gmail.com on 11 Nov 2010 at 4:09

GoogleCodeExporter commented 8 years ago
Brian,

According to:

  http://stackoverflow.com/questions/9387928/whats-the-difference-between-dist-packages-and-site-packages

the dist-packages is a Debian/Ubuntu specific thing for pre-packaged python 
packages.  As such, I don't think it is appropriate for libkml to install there 
on it's own.  

I'm not sure why the stuff in site-packages was not picked up but this has 
always been sort of magical to me. 

I'm tentatively closing this as wont-fix.  Let me know if you think there is a 
more appropriate change.

Original comment by fwarmerdam@gmail.com on 3 Apr 2013 at 9:00