Skip to content

Commit

Permalink
windows debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewq11 committed Nov 8, 2024
1 parent 582ae82 commit a19508a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [windows-latest] # ubuntu-latest, macos-latest,
python-version: ["3.10", "3.11"] # -> Will re-enable support for py312 once pyg is released

runs-on: ${{ matrix.os }}
Expand Down
11 changes: 4 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,23 @@
if system == "Darwin":
package_compile_args += ["-mmacosx-version-min=10.15"]
elif system == "Windows":
path_separator = "\\"
lib_folder_name = "Lib"
#path_separator = "\\"
#lib_folder_name = "Lib"
pass

if system == "Darwin" or system == "Linux":
package_compile_args += ["-Wmaybe-uninitialized", "-Wuninitialized"]

# Extracting paths to torch and rdkit dependencies
torch_dir = torch.__path__[0]
print(rdkit.__path__[0].split(path_separator), '***')
rdkit_lib_index = rdkit.__path__[0].split(path_separator).index(lib_folder_name) # breaks on windows
rdkit_prefix = "/".join(rdkit.__path__[0].split(path_separator)[:rdkit_lib_index])

# Windows-specific changed to rdkit path
if system == "Windows":
rdkit_prefix += "/Library"

torch_dir = torch.__path__[0]
print(rdkit.__path__[0].split(path_separator), "***")
rdkit_lib_index = rdkit.__path__[0].split("/").index("lib") # breaks on windows
rdkit_prefix = "/".join(rdkit.__path__[0].split("/")[:rdkit_lib_index])

ext_modules = [
Pybind11Extension(
"graphium_cpp",
Expand Down

0 comments on commit a19508a

Please sign in to comment.