Skip to content

Commit

Permalink
optional: shared object only shows up within mt2 installation area
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray committed Aug 29, 2024
1 parent 8936dd5 commit 394e06b
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ include = ["mt2*"]
namespaces = false

[tool.setuptools.package-data]
mt2 = ["src/*.h", "src/*.cpp"]
mt2 = ["src/_mt2/*.h", "src/_mt2/*.cpp"]
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
setup(
ext_modules=[
Extension(
"_mt2",
["src/main.cpp"],
"mt2._mt2",
["src/_mt2/main.cpp"],
define_macros=[
# Pass in the version info so we can expose it in the extension.
("VERSION_INFO", __version__),
Expand All @@ -19,7 +19,7 @@
# citation information elsewhere.
("DISABLE_COPYRIGHT_PRINTING", "1"),
],
include_dirs=[numpy.get_include(), "src"],
include_dirs=[numpy.get_include(), "src/_mt2"],
language="c++",
extra_compile_args=["-std=c++11"],
),
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/mt2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import numpy

from _mt2 import mt2_lester_ufunc, mt2_tombs_ufunc # pyright: ignore [reportMissingImports]
from mt2._mt2 import mt2_lester_ufunc, mt2_tombs_ufunc # pyright: ignore [reportMissingImports]

__version__ = "1.2.1"

Expand Down
2 changes: 1 addition & 1 deletion tests/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from _mt2 import mt2_lally_ufunc, mt2_lester_ufunc, mt2_tombs_ufunc
from mt2._mt2 import mt2_lally_ufunc, mt2_lester_ufunc, mt2_tombs_ufunc


def mt2_lally(*args, desired_precision_on_mt2=0.0, out=None):
Expand Down

0 comments on commit 394e06b

Please sign in to comment.