Source
xxxxxxxxxx
##
import zlib
import sys
import os
try:
import casatools
from casatools.config import build as tools_config
except ImportError as exc:
print(f'Exception found when importing casatools: {type(exc).__name__} {exc}')
os._exit(1)
sys.exit(1)
from setuptools import setup, find_packages
from distutils.dir_util import copy_tree, remove_tree
from distutils.util import get_platform
from distutils.cmd import Command
from distutils.command.build import build
from subprocess import Popen, PIPE
from subprocess import call as Proc
from datetime import datetime
from textwrap import dedent