Skip to content

Commit

Permalink
Setup: minor fix for sdist check (attempt 1)
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Apr 7, 2021
1 parent 392fd4e commit 46b085d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ zip_safe = False

[options.packages.find]
exclude =
tests
docs
tests*
docs*

[options.extras_require]
doc =
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
import numpy as np


HERE = os.path.abspath(os.path.dirname(__file__))


# openmp finder ###############################################################
# This code is adapted for a large part from the scikit-learn openmp_helpers.py
# which can be found at:
Expand Down Expand Up @@ -99,7 +102,7 @@ def check_openmp_support():
openmp_supported = False
openmp_flags = []
finally:
os.chdir(os.path.abspath(os.path.dirname(__file__)))
os.chdir(HERE)
return openmp_supported, openmp_flags


Expand Down

0 comments on commit 46b085d

Please sign in to comment.