Skip to content

Commit

Permalink
Merge pull request #1 from LCOGT/fix/install
Browse files Browse the repository at this point in the history
use poetry to build & manage project
  • Loading branch information
jashan-lco authored Oct 31, 2024
2 parents b2cf069 + 796e091 commit 8a9503d
Show file tree
Hide file tree
Showing 17 changed files with 1,101 additions and 205 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ deb_dist
dist
test-reports
wheelhouse
.devenv
*-f2pywrappers.f
slalibmodule.c
60 changes: 0 additions & 60 deletions Jenkinsfile

This file was deleted.

3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

50 changes: 0 additions & 50 deletions Makefile

This file was deleted.

8 changes: 0 additions & 8 deletions build-sdist.sh

This file was deleted.

39 changes: 0 additions & 39 deletions build-wheels.sh

This file was deleted.

22 changes: 22 additions & 0 deletions build.py
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],
})
Loading

0 comments on commit 8a9503d

Please sign in to comment.