Skip to content

Commit

Permalink
Fix sys import in __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
holgern committed Jan 29, 2020
1 parent 79ae31a commit 0ffa12f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions skopt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def f(x):
Run the tests by executing `pytest` in the top level directory.
"""
import sys
try:
# This variable is injected in the __builtins__ by the build
# process. It is used to enable importing subpackages of sklearn when
Expand Down Expand Up @@ -73,8 +72,8 @@ def f(x):
#
__version__ = "0.7"


if __SKOPT_SETUP__:
import sys
sys.stderr.write('Partial import of skopt during the build process.\n')
# We are not importing the rest of scikit-optimize during the build
# process, as it may not be compiled yet
Expand Down

0 comments on commit 0ffa12f

Please sign in to comment.