From: Michael D. <md...@st...> - 2012-05-31 13:00:52
|
2to3 is run on the source files in lib/matplotlib, which are then put under the build directory. Think of it like a compilation step -- the original source files should never be touched. You will need to install matplotlib (I recommend using virtualenv for this) in order to run it. Mike On 05/30/2012 10:30 PM, Tom Lippman wrote: > Hi All, > > I've gotten it somewhat working. For some reason the build process > isn't pointing 2to3 at the files in lib/matplotlib. But it's > definitely running 2to3 on something.. > > Like the linked solution, I changed setupext.py to look for the > dependencies in /usr/local. I also made a new makefile and setupeggs > which are changed in obvious ways. The changes are on my github > (tmlippman). > > Rather than copy folders manually, I ran make twice: > > sudo make -f make.py3.osx PREFIX=/usr/local fetch deps > > sudo make -f make.py3.osx > PREFIX=/Library/Frameworks/Python.framework/Versions/3.2 mpl_build > mpl_install_develop > > (outputs attached) > > Everything appeared to compile fine, but when I tried to import > matplotlib, I got errors like: ImportError: No module named cPickle. > > After running 2to3 on the lib/matplotlib directory (in my source > location) everything works. > > > Tom > > > > > On May 30, 2012, at 2:40 PM, Michael Droettboom wrote: > > > On 05/30/2012 03:32 PM, Thomas Kluyver wrote: > >> On 30 May 2012 20:05, Tom Lippman<tom...@gm...> wrote: > >>> I'm on OS X 10.7, using the python 3.2 > >> I saw someone recently who'd managed to get it built for Python 3 on > >> OS X. I suggested he come here to help simplify the process - this is > >> what he did: http://stackoverflow.com/a/10574470/434217 > >> > >> Thomas > >> > > It would be great to convert that post in a pull request so it can be > > included upstream. I'm not a Mac user myself, but I think there's > > enough Mac users to test that and push it through to make things easier > > on everyone else. > > > > Mike > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. > Discussions > > will include endpoint security, mobile security and the latest in > malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Matplotlib-devel mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > |