Commits

Renaud Miel authored a1dd86a0348
CAS-14025 Reverted build system changes

Turning on cmake VERBOSE allows to debug casatools wheel build problems

casatools/setup.py

Modified
197 197 # The CCACHE_BASEDIR CCACHE_NOHASHDIR env variables allow ccache
198 198 # to work even if the absolute path of the compilation directory changes,
199 199 # as is the cawe with the python "build" package, that creates a temp
200 200 # dir under $TMPDIR/build-via-sdist-xxxxxx. See "man cmake" for details.
201 201 sourcedir='src/tools'
202 202 os.environ['CCACHE_BASEDIR'] = os.getcwd()
203 203 os.environ['CCACHE_NOHASHDIR'] = 'true'
204 204 if 'CMAKE_BUILD_PARALLEL_LEVEL' not in os.environ:
205 205 cmake_par = os.sysconf('SC_NPROCESSORS_ONLN') -1
206 206 os.environ['CMAKE_BUILD_PARALLEL_LEVEL'] = str(1 if cmake_par == 0 else cmake_par)
207 - print(f"Working directory: {os.getcwd()}")
208 - print("Configuring casatools using cmake args:")
209 - [print(arg) for arg in cmake_args]
210 - try:
211 - subprocess.run(['cmake', sourcedir] + cmake_args,
212 - check=True,
213 - capture_output=True
214 - )
215 - except subprocess.CalledProcessError as e:
216 - print("BeginError@cmake-configure")
217 - print("e.args:")
218 - print(e.args)
219 - print("e.cmd:")
220 - print(e.cmd)
221 - print("e.returncode:")
222 - print(e.returncode)
223 - print("e.stdout:")
224 - print(e.stdout.decode())
225 - print("e.stderr:")
226 - print(e.stderr.decode())
227 - print("EndError@cmake-configure")
228 - raise
229 - print("Building casatools ...")
230 - try:
231 - subprocess.run(['cmake', '--build', '.'],
232 - check=True,
233 - capture_output=True
234 - )
235 - except subprocess.CalledProcessError as e:
236 - print("BeginError@cmake--build")
237 - print("e.args:")
238 - print(e.args)
239 - print("e.cmd:")
240 - print(e.cmd)
241 - print("e.returncode:")
242 - print(e.returncode)
243 - print("e.stdout:")
244 - print(e.stdout.decode())
245 - print("e.stderr:")
246 - print(e.stderr.decode())
247 - print("EndError@cmake--build")
248 - parent_dir = '/'.join(os.getcwd().split('/')[0:-1])
249 - # copy_tree(parent_dir, parent_dir + '.bak')
250 - raise
251 -
207 + subprocess.check_call(['cmake', sourcedir] + cmake_args)
208 + subprocess.check_call(['cmake', '--build', '.'])
252 209
253 210 # Copy GCC libs on Macos.
254 211 # TODO: Make this work with non-"standard" gcc location
255 212 if (sys.platform == 'darwin'):
256 213 gcc_dir = "/opt/local/lib/libgcc/"
257 214 casac_lib_dir = extdir + "/casatools/__casac__/lib"
258 215 copy_tree(gcc_dir, casac_lib_dir)
259 216
260 217 # Collect all the libraries in a private directory and set relative rpaths
261 218 if mod_closure:

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut