Source
1410
1410
fd.write("from __future__ import absolute_import\n")
1411
1411
fd.write("__name__ = '__casac__'\n")
1412
1412
fd.write("__all__ = [ %s ]\n\n" % alllist)
1413
1413
fd.write("%s\n" % imports)
1414
1414
"""
1415
1415
generate_casac_init_py()
1416
1416
1417
1417
if do_wheel_closure:
1418
1418
module_path = os.path.join('build', distutils_dir_name('lib'), module_name)
1419
1419
1420
-
if isexe("scripts/mod-closure") and not os.path.isfile(os.path.join("build",".created.closure")):
1420
+
if isexe("scripts/mod-closure"):
1421
1421
print("generating module closure...")
1422
1422
if Proc([ "scripts/mod-closure", module_path ]) != 0:
1423
1423
sys.exit("\tclosure generation failed...")
1424
-
open(os.path.join("build",".created.closure"),'a').close( )
1425
1424
if isexe("scripts/find-glibc-private"):
1426
1425
if Proc(["scripts/find-glibc-private", "--delete", module_path]) != 0:
1427
1426
sys.exit("\tGLIBC_PRIVATE cleanup failed...")
1428
1427
1429
1428
1430
1429
# Fixing rpaths is needed for gcc wheel builds
1431
1430
if sys.platform == 'darwin' and doing_wheel_build:
1432
1431
print("Fixing rpaths")
1433
1432
result = subprocess.run(['perl', 'scripts/fixrpath.pl'], stdout=subprocess.PIPE)
1434
1433
print(result.stdout.decode('utf-8'))