{"id":21401165,"url":"https://github.com/uibcdf/testconda_withf90libs","last_synced_at":"2026-01-03T06:16:41.128Z","repository":{"id":104711202,"uuid":"136636109","full_name":"uibcdf/TestConda_withF90Libs","owner":"uibcdf","description":"Sample case showing how to distribute a python package with fortran f90 libraries in conda.","archived":false,"fork":false,"pushed_at":"2018-06-09T01:24:40.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T03:14:02.854Z","etag":null,"topics":["conda","conda-recipe","example-project","f2py"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uibcdf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-08T15:26:05.000Z","updated_at":"2024-07-03T14:59:22.000Z","dependencies_parsed_at":"2023-07-23T01:15:56.606Z","dependency_job_id":null,"html_url":"https://github.com/uibcdf/TestConda_withF90Libs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uibcdf%2FTestConda_withF90Libs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uibcdf%2FTestConda_withF90Libs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uibcdf%2FTestConda_withF90Libs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uibcdf%2FTestConda_withF90Libs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uibcdf","download_url":"https://codeload.github.com/uibcdf/TestConda_withF90Libs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243893894,"owners_count":20364919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["conda","conda-recipe","example-project","f2py"],"created_at":"2024-11-22T15:26:25.709Z","updated_at":"2026-01-03T06:16:41.098Z","avatar_url":"https://github.com/uibcdf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setting up and uploading a python package with f90 library to Anaconda.\n\nThe purpose of this repo is to show how a python package with a f90 fortran library is setup and distributed via anaconda.\n\nA simple setup file `setup.py` includes the necessary declarations to compile the fortran code through numpy (f2py).\n\nAny comment is appreciated.\n\n## Instructions\n\n### Manually testing the package\n\nThe fortran code can be compiled manually with f2py and the package locally invoked to run a first test:\n\n```bash\ncd extra\npython f2py_compiling.py\ncd ..\npython\n```\n\nOnce the python interpreter is opened you can already check that the fortran\nlibrary is usable with the piece of python code in the 'Finnal test' subsection.\n\n\n### Building and uploading the package to your anaconda channel\n\nFind the conda recipe and steps description in [devtools/conda-recipe](https://github.com/uibcdf/TestConda_withF90Libs/tree/master/devtools/conda-recipe).\n\n### Finnal test:\n\nconda install -c YOUR_ANACONDA_CHANNEL vector_normalization\n\n```python\nimport numpy as np\nfrom vector_normalization import normalize_vector()\n\nvect=np.array([1.0,1.0,1.0])\nnormalize_vector(vect)\nprint(vect)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuibcdf%2Ftestconda_withf90libs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuibcdf%2Ftestconda_withf90libs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuibcdf%2Ftestconda_withf90libs/lists"}