Skip to content

Commit

Permalink
Merge pull request #319 from janden/fix_finufft_setup
Browse files Browse the repository at this point in the history
Fix finufft setup.py
  • Loading branch information
lu1and10 authored Jul 14, 2023
2 parents cd8c5af + 50e082a commit 5c620c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/finufft/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from setuptools import setup, Extension
import os
import platform
from pathlib import Path

from tempfile import mkstemp

Expand All @@ -18,8 +19,7 @@
# Note: This will not work if run through pip install since setup.py is copied
# to a different location.
if finufft_dir == None or finufft_dir == '':
current_path = os.path.abspath(__file__)
finufft_dir = os.path.dirname(os.path.dirname(current_path))
finufft_dir = Path(__file__).resolve().parents[2]

# Set include and library paths relative to FINUFFT root directory.
inc_dir = os.path.join(finufft_dir, 'include')
Expand Down

0 comments on commit 5c620c2

Please sign in to comment.