Skip to content

Commit

Permalink
v1.1.1
Browse files Browse the repository at this point in the history
version 1.1.1
  • Loading branch information
thusser authored Jul 21, 2023
2 parents 45455e5 + 61a583b commit 4892fdd
Show file tree
Hide file tree
Showing 4 changed files with 1,645 additions and 345 deletions.
8 changes: 7 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import os
import shutil

from setuptools import Extension, Distribution
import numpy
from Cython.Build import cythonize
Expand Down Expand Up @@ -36,8 +38,12 @@ def build() -> None:
)

distribution.run_command("build_ext")

# copy to source
build_ext_cmd = distribution.get_command_obj("build_ext")
build_ext_cmd.copy_extensions_to_source()
for ext in build_ext_cmd.extensions:
filename = build_ext_cmd.get_ext_filename(ext.name)
shutil.copyfile(os.path.join(build_ext_cmd.build_lib, filename), filename)


if __name__ == "__main__":
Expand Down
Loading

0 comments on commit 4892fdd

Please sign in to comment.