Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardob90 committed Jan 12, 2024
1 parent fbd7aaf commit dd20de4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ def build_extension(self, ext: CMakeExtension):
if platform.system() == "Windows":
cmake_args += [f"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{cfg.upper()}={ext_dir}"]
if sys.maxsize > 2**32:
# We are on a Win 64-bit system
cmake_args += ["-A", "x64"]
build_args += ["--", "/m"]
else:
# These flags are passed as-is to the underlying build tool (make)
build_args += ["--", "-j2"]

env = os.environ.copy()
Expand Down Expand Up @@ -70,6 +72,6 @@ def build_extension(self, ext: CMakeExtension):
)
],
cmdclass={"build_ext": CMakeBuild},
# The following line includes *any* library file found in the package directory
# The following includes *any* library file found in the package directory
package_data={"cleedpy": ["**/*.dylib", "**/*.so", "**/*.dll"]},
)

0 comments on commit dd20de4

Please sign in to comment.