tchlux / fmodpy

A lightweight, efficient, highly automated, fortran wrapper for python.
MIT License
70 stars 5 forks source link

Building conda package from source code on pypi #3

Closed koshMer closed 3 years ago

koshMer commented 3 years ago

Hi :)

I am currently trying to build an anaconda package from the source code you uploaded on pypi.org. Since it is on pypi it is supposedly quite easy to do so ^^.

For reference, i followed this official guide: conda-build skeleton.

During testing the build scripts expects the following path in the folder og.fmodpy: /about/version.txt What is the purpose of og.fmodpy? You mentioned somewhere that this folder contains old code. Is it necessary to make your module work?

tchlux commented 3 years ago

No it is not necessary and I should remove it. og_fmodpy is the original version of this code from years ago. It's ugly code, but it allows for a special case of passing subroutines as arguments and that's the only reason I kept it around.

I'll remove it from the repository and publish a new version in a minute.

tchlux commented 3 years ago

New version 1.3.0 is out, og_fmodpy is removed. Hope that helps!

koshMer commented 3 years ago

Thanks :) I'll try again this week.

koshMer commented 3 years ago

Works like a charm now. Tested with Ubuntu 20.04 and fmodpy 1.3

conda skeleton pypi fmodpy conda-build fmodpy conda install --use-local fmodpy

creates and installs a local conda package from fmodpy on pypi. I took the liberty and uploaded the package to my site on anaconda (here). It links to your github and displays the license. If you like, i can send you the tarball so you can create your own anaconda account and upload it there. In this case, I will delete it from my page.

Thanks again! :)