forked from scottransom/pyslalib
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from LCOGT/fix/install
use poetry to build & manage project
- Loading branch information
Showing
17 changed files
with
1,101 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,6 @@ deb_dist | |
dist | ||
test-reports | ||
wheelhouse | ||
.devenv | ||
*-f2pywrappers.f | ||
slalibmodule.c |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from numpy.distutils.core import setup, Extension | ||
import get_docstring | ||
import glob | ||
import pickle | ||
|
||
|
||
def build(setup_kwargs): | ||
# Generate documentation dictionary and save it in "pyslalib/" | ||
docstring = get_docstring.get_docstring() | ||
f = open("pyslalib/docstring_pickle.pkl", "wb") | ||
pickle.dump(docstring, f) | ||
f.close() | ||
|
||
ext = Extension( | ||
name = "pyslalib.slalib", | ||
include_dirs = ["."], | ||
sources = list(set(["slalib.pyf"]) & set(glob.glob("*.f")) & set(glob.glob("*.F")) - set(glob.glob("*-f2pywrappers.f"))) | ||
) | ||
|
||
setup_kwargs.update({ | ||
"ext_modules": [ext], | ||
}) |
Oops, something went wrong.