-
Notifications
You must be signed in to change notification settings - Fork 5
Installing MDANSE from source on ubuntu@focal using pip only
eurydice76 edited this page Apr 4, 2022
·
2 revisions
This wiki summarizes the different steps needed for installing MDANSE from source on ubuntu focal (20.04). It tries to install the less as possible dependencies on the system using pip as much as possible.
Prerequesites:
- python2 installed on the system
- gcc, g++ installed
First install NetCDF alongside with its headers:
- sudo apt install libnetcdf-dev
- sudo updatedb
Then install wxPython from source:
- Pick up the latest wxPython 3 (3.0.2) source tarball here
- tar xvjf wxPython-src-3.0.2.0.tar.bz2
- cd wxPython-src-3.0.2.0
- ./configure
- make -j8
- sudo make install
This will install wxPython 3 under /usr/lib/python2.7/dist-packages/wx-3.0-gtk3/wx directory.
Setup the virtual environment for MDANSE:
- virtualenv -p python2 ~/venvs/mdanse --copies
- source ~/venvs/mdanse/bin/activate
- pip install numpy
- pip install matplotlib
- pip install pyro
- pip install vtk
- ln -s /usr/lib/python2.7/dist-packages/wx-3.0-gtk3/wx ~/venvs/mdanse/lib/python2.7/site-packages/wx
Clone the ScientificPython directory and install it under the mdanse venv:
- git clone [email protected]:scientific-software/scientific-python.git
- cd scientific-python
- python setup.py build --netcdf_prefix=/usr
- python setup.py install
Clone the MMTK directory and install it under the mdanse venv:
- git clone [email protected]:scientific-software/mmtk.git
- cd mmtk
- python setup.py build
- python setup.py install
Clone the MDANSE directory and install it under the mdanse venv:
- git clone [email protected]:ISISNeutronMuon/MDANSE.git
- cd MDANSE
- python setup.py build
- python setup.py install