On Wed, Sep 21, 2016 at 04:23:30PM -0600, Bruce Sherwood wrote:
> Rob describes building Classic VPython from source. The relevant repository
> is
https://github.com/BruceSherwood/vpython-wx, and the file INSTALL.txt
> provides information on how to build for Linux. It's not easy, but it's
> possible, and "import visual" will work.
I just did it under Ubuntu 16.04. The vpython git repository works
as-is there; no patches or changes needed. Under Ubuntu 14.04, I had to
download a newer version of wxpython than was in Ubuntu, but with 16.04
the one that comes with Ubuntu seems to work. So, doing it on Ubuntu
16.04 is actually not very painful at all.
Once you've cloned the git archive, all you have to do is cd into the
vpython-wx directory and run
python setup.py build
Then, when it dies complaining that something isn't there, apt-get
install it, and repeat, until the build makes it all the way through.
(By reading INSTALL.txt, you can probably figure out what to apt-get
install before even starting the build, but, well, I was lazy.)
Everything you need is in Ubuntu. Eventally it builds. Then just
sudo python setup.py install
which will install it in the default place (under /usr/local). If you
want it to go somewhere else, add "--prefix=/opt" or whatever at the
end. (On a bunch of my machines, I had to make the NFS shared directory
/opt rather than /usr/local. It was Nvidia's fault; they distributed
Cuda in .debs that installed to /usr/local rather than /usr, which you
aren't supposed to do. The result was that things got messy if
/usr/local was an NFS shared directory.)