Skip to content

quantumsteve/addie

 
 

Repository files navigation

Addie

Lots of wonderful text about this being a GUI to do a Fourier transform.

Building

Before doing the normal python setup.py ... things you must convert the designer/*.ui files to addie*.py. This is done with python setup.py pyuic. After that, all the normal setuptools magic applies.

To run from source (step 1 only needs to be done if the .ui file changes):

$ addiedevel.sh

If you are want to specify a different mantidpython, then add it as a command line argument

$ addiedevel.sh /opt/mantid37/bin/mantidpython

Similarly, there is a script for windows (experimental)

addiedevel.bat

Developing using virtual environments

If you normally develop using virtualenv or friends, you can develop addie that way as well. After creating the virtual environment, run

<MANTIDBUILDDIR>/bin/AddPythonPath.py

which will add a file, mantid.pth to your environment with the location of mantid. Then the normal

python setup.py develop

will put the rest of addie into your environment so you only need to edit files and type addie.

As an extra reference, use direnv to manange your virtual environments. For a python2 virtual environment the .envrc file should contain

layout python2 -- --system-site-packages

so the system wide packages installed for mantid are found.

Creating RPMs

Python generated srpm are not as flexible as they should be. To generate one that is run buildrpm and look for the files in the dist directory.

$ ./buildrpm

The rpms are available on copr.

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.5%
  • HTML 1.3%
  • Other 0.2%