One thing I just noticed is that python3.4 and the distutils libraries are installed at /usr/lib/python3.4/distutils/, but the setuptools is located at /usr/local/lib/python3.4/dist-packages/. One of the oddities of setuptools is that it monkey-patches distutils, if I understand it correctly, so perhaps it isn’t doing it correctly for some reason? I haven’t a clue, really.
This oddity in directory structures was actually one thing I noticed in Ubuntu last summer/fall for py2.7 that broke a lot of things for me. I was in a rush at the time, so I just switched to anaconda, nuked everything python in my .local and moved on. That is always an option here, but it would be nice to get to the bottom of this as well.
Ben Root
···
On Wed, Mar 18, 2015 at 1:03 PM, <keith.briggs@…644…> wrote:
Ben: thanks for your help - it’s very much appreciated!
Keith
kbriggs:~/Downloads/matplotlib-1.4.3> python3
Python 3.4.0 (default, Apr 11 2014, 13:05:11)
[GCC 4.8.2] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import setuptools
print(setuptools.file)
/usr/local/lib/python3.4/dist-packages/setuptools-14.3-py3.4.egg/setuptools/init.py
kbriggs:~/Downloads/matplotlib-1.4.3> python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
import setuptools
print(setuptools.file)
/usr/lib/python2.7/dist-packages/setuptools/init.pyc
From: ben.v.root@…287… [ben.v.root@…287…] On Behalf Of Benjamin Root [ben.root@…1304…]
Sent: 18 March 2015 16:58
To: Briggs,KM,Keith,TUB2 R
Cc: matplotlib development list
Subject: Re: [matplotlib-devel] 1.4.3 does not build on Ubuntu 14 with python3
Keith,
Back to the issue at hand. could you do the following?
import setuptools
print(setuptools.file)
It would be interesting to see if that path differs from the path of the egg you just listed.
Ben
On Wed, Mar 18, 2015 at 11:39 AM, <keith.briggs@…644…mailto:keith.briggs@...644...> wrote:
pip still thinks I have the latest. I think it’s a question of how to force the matplotlib setup.py to use actually it.
Keith
kbriggs:~/Downloads/matplotlib-1.4.3> sudo pip3 install setuptools --upgrade
Requirement already up-to-date: setuptools in /usr/local/lib/python3.4/dist-packages/setuptools-14.3-py3.4.egg
Cleaning up…
From: ben.v.root@…287…mailto:ben.v.root@...287... [ben.v.root@…287…mailto:ben.v.root@...287...] On Behalf Of Benjamin Root [ben.root@…1304…mailto:ben.root@...1304...]
Sent: 18 March 2015 15:33
To: Briggs,KM,Keith,TUB2 R
Cc: matplotlib development list
Subject: Re: [matplotlib-devel] 1.4.3 does not build on Ubuntu 14 with python3
I would just use pip. Ubuntu/Debian has really messed up the python environment in more ways than one.
On Wed, Mar 18, 2015 at 11:08 AM, keithbriggs <keith.briggs@…644…mailto:keith.briggs@...644...<mailto:keith.briggs@…644…mailto:keith.briggs@...4634...4...>> wrote:
The Ubuntu package manager tells me it is up to date.
If I download setuptools-14.3 and install, it goes into /usr/local/lib/ and
doesn’t get used.
How do I force it to be used?
Or am I supposed to override the Ubuntu package manager?
Keith
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.netmailto:Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel