# Configuring a build script for NumerMP

**URL:** <https://fortran-lang.discourse.group/t/configuring-a-build-script-for-numermp/159>\
**Category:** Help\
**Created:** [June 29, 2020, 6:15pm UTC](https://fortran-lang.discourse.group/t/configuring-a-build-script-for-numermp/159 "2020-06-29T18:15:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ELNS](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/elns/32/3338_2.png) [@ELNS](https://fortran-lang.discourse.group/u/ELNS)\
**Post date:** [June 29, 2020, 6:15pm UTC](https://fortran-lang.discourse.group/t/configuring-a-build-script-for-numermp/159/1 "2020-06-29T18:15:48Z")

</div>

Hi all  
I created [NumerMP](https://github.com/EverLookNeverSee/numermp) package couple days ago.  
For building this project as a python package, i had to use f2py in order to create signature files for fortran subroutines that contains openmp library(.pyf and .so files).  
I ran commands below and got .pyf and .so files for trial fortran sources:

1. python -m numpy.f2py _trial\_file.f90_ -m _module\_name_ -h _trial\_file.pyf_
2. python -m numpy.f2py -c --f90flags=’-fopenmp’ -lgomp _trial\_file.pyf_ _trial\_file.f90_

Then, i tested generated extension modules inside library itself and they worked correctly.  
Then i built whole project and uploaded to test pypi and installed it using pip, But i got Import Error.

How can i fix this build issue?

---

<div class="post-metadata">

**Author:** ![melissawm](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/melissawm/32/13_2.png) [@melissawm](https://fortran-lang.discourse.group/u/melissawm)\
**Post date:** [June 29, 2020, 6:47pm UTC](https://fortran-lang.discourse.group/t/configuring-a-build-script-for-numermp/159/2 "2020-06-29T18:47:03Z")

</div>

Hi, I can’t see any code in the NumerMP git repo, and I can’t find the package in pypi. Am I missing something?

---

<div class="post-metadata">

**Author:** ![ELNS](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/elns/32/3338_2.png) [@ELNS](https://fortran-lang.discourse.group/u/ELNS)\
**Post date:** [June 29, 2020, 7:00pm UTC](https://fortran-lang.discourse.group/t/configuring-a-build-script-for-numermp/159/3 "2020-06-29T19:00:58Z")

</div>

No, you don’t. I worked in a separate local branch and removed it after it failed. 🤦‍♂️  
I will push new local branch as soon as possible and build a test release.

---

<div class="post-metadata">

**Author:** ![ELNS](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/elns/32/3338_2.png) [@ELNS](https://fortran-lang.discourse.group/u/ELNS)\
**Post date:** [June 29, 2020, 7:52pm UTC](https://fortran-lang.discourse.group/t/configuring-a-build-script-for-numermp/159/4 "2020-06-29T19:52:54Z")

</div>

I have pushed new branch called **build\_issue** , you can check it out now.  
And i also sent you a collaborator invitation, Please join to this project if you would like.
