Skip to content

Commit

Permalink
fixup windows setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Baekalfen committed Oct 18, 2023
1 parent fa5d5c5 commit d05b3f5
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ def initialize_options(self):
super().initialize_options()
self.parallel = cpu_count()

# if sys.platform == "win32":
# # Cython currently has a bug in its code that results in symbol collision on Windows
# def get_export_symbols(self, ext):
# parts = ext.name.split(".")
# initfunc_name = "PyInit_" + parts[-2] if parts[-1] == "__init__" else parts[-1] # noqa: F841

# # Override function in Cython to fix symbol collision
# build_ext.get_export_symbols = get_export_symbols
# thread_count = 0 # Disables multiprocessing (windows)
# else:
thread_count = cpu_count()
if sys.platform == "win32":
# # Cython currently has a bug in its code that results in symbol collision on Windows
# def get_export_symbols(self, ext):
# parts = ext.name.split(".")
# initfunc_name = "PyInit_" + parts[-2] if parts[-1] == "__init__" else parts[-1] # noqa: F841

# # Override function in Cython to fix symbol collision
# build_ext.get_export_symbols = get_export_symbols
thread_count = 0 # Disables multiprocessing (windows)
else:
thread_count = cpu_count()

# Fixing issue with nthreads in Cython
if (3,
Expand Down

0 comments on commit d05b3f5

Please sign in to comment.