Skip to content

Commit

Permalink
fixing pip install on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoleski committed Jan 29, 2024
1 parent 03d7858 commit 73151bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from pathlib import Path
import platform

from setuptools import Extension, find_packages, setup

Expand Down Expand Up @@ -28,17 +29,16 @@
source_MMmo = source_MM / "mulensobjects"

# C/C++ Extensions
kwargs = dict()
if platform.system().upper() != "WINDOWS":
kwargs['libraries'] = ["m"]
ext_AC = Extension(
"MulensModel.AdaptiveContouring",
sources=[str(f.relative_to(PROJECT_PATH)) for f in source_AC.glob("*.c")],
libraries=["m"],
)
"MulensModel.AdaptiveContouring", **kwargs,
sources=[str(f.relative_to(PROJECT_PATH)) for f in source_AC.glob("*.c")])
ext_VBBL = Extension(
"MulensModel.VBBL",
"MulensModel.VBBL", **kwargs,
sources=[
str(f.relative_to(PROJECT_PATH)) for f in source_VBBL.glob("*.cpp")],
libraries=["m"],
)
str(f.relative_to(PROJECT_PATH)) for f in source_VBBL.glob("*.cpp")])

setup(
name='MulensModel',
Expand Down
2 changes: 1 addition & 1 deletion source/MulensModel/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.20.0"
__version__ = "2.20.1"

0 comments on commit 73151bf

Please sign in to comment.