Skip to content

Commit

Permalink
Merge pull request #19 from lsst/tickets/DM-11667
Browse files Browse the repository at this point in the history
Install python3 library aliases
  • Loading branch information
timj committed Aug 27, 2017
2 parents f1f3e98 + 5126c79 commit 5c3b8ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/lsstimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@
import importlib
import os.path

# Ensure that the Python3 package library reorganization is available
# to Python 2. It's okay if this doesn't work, and it won't work if SCons
# is importing this and SCons has no access to the future package.
try:
from future import standard_library
standard_library.install_aliases()
except ImportError:
pass

# List of extensions to set global flags. May need to be extended
# for systems other than *nix and OSX.
SHARED_LIB_EXTENSION_LIST = ('.so', '.dylib')
Expand Down

0 comments on commit 5c3b8ec

Please sign in to comment.