Source
53
53
## #2 0x00007f1d192ee624 in deflate () from /lib64/libz.so.1
54
54
## #3 0x00007f1d0851a195 in zlib_Compress_compress () from /opt/rh/rh-python36/root/usr/lib64/python3.6/lib-dynload/zlib.cpython-36m-x86_64-linux-gnu.so
55
55
##
56
56
import zlib
57
57
import sys
58
58
import os
59
59
60
60
try:
61
61
import casatools
62
62
from casatools.config import build as tools_config
63
-
except:
64
-
print("cannot find CASAtools (https://open-bitbucket.nrao.edu/projects/CASA/repos/casatools/browse) in PYTHONPATH")
63
+
except ImportError as exc:
64
+
print(f'Exception found when importing casatools: {type(exc).__name__} {exc}')
65
65
os._exit(1)
66
66
67
67
from setuptools import setup, find_packages
68
68
from distutils.dir_util import copy_tree, remove_tree
69
69
from distutils.util import get_platform
70
70
from distutils.cmd import Command
71
71
from distutils.command.build import build
72
72
from subprocess import Popen, PIPE
73
73
from subprocess import call as Proc
74
74
from datetime import datetime