Skip to content

Commit

Permalink
Improved print statements in setup.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
moorepants committed Sep 16, 2023
1 parent 343a7bc commit 1e0795b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,12 @@ def handle_ext_modules_general_os():
print('Using Conda Forge Ipopt on Windows.')
ext_module_data = handle_ext_modules_win_32_conda_forge_ipopt()
elif sys.platform == "win32" and ipoptdir:
print('Using custom Ipopt in custom directory on Windows.')
print('Using Ipopt in {} directory on Windows.'.format(ipoptdir))
ext_module_data = handle_ext_modules_win_32_other_ipopt()
elif sys.platform == "win32":
print('Using Ipopt adjacent to setup.py on Windows.')
ipopdir = os.path.abspath(os.path.dirname(__file__))
elif sys.platform == "win32" and not ipoptdir:
ipoptdir = os.path.abspath(os.path.dirname(__file__))
msg = 'Using Ipopt adjacent to setup.py in {} on Windows.'
print(msg.format(ipoptdir))
ext_module_data = handle_ext_modules_win_32_other_ipopt()
else:
print('Using Ipopt found with pkg-config.')
Expand Down

0 comments on commit 1e0795b

Please sign in to comment.