cmt-dtu-energy / MagTense

MagTense - a micromagnetism and magnetostatic framework
http://www.MagTense.org
GNU General Public License v3.0
28 stars 12 forks source link

Update the packpage using setup.py #20

Closed zhucaoxiang closed 2 years ago

zhucaoxiang commented 2 years ago

Hi, I revised the python files so the package now can be installed using setup.py. For example, pip install -e . or python setup.py install. In principle, it can be also uploaded to PyPI and distributed over the internet. But it probably needs some advanced techniques because of the Fortran libraries. This can be done in the future.

spollok commented 2 years ago

@zhucaoxiang Thank you very much for your pull request. I have tested it successfully on my Linux machine and have merged your changes now. Later, I will make some adjustments as some imports fail when not building the package.