8000 BLD, BUG: Fix compiler optimization log AttributeError by seiko2plus · Pull Request #18899 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BLD, BUG: Fix compiler optimization log AttributeError #18899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions numpy/distutils/command/build_clib.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ def run(self):
log.info("Detected changes on compiler optimizations, force rebuilding")
self.force = True

import atexit
def report():
def report(copt):
log.info("\n########### CLIB COMPILER OPTIMIZATION ###########")
log.info(self.compiler_opt.report(full=True))
log.info(copt.report(full=True))

atexit.register(report)
import atexit
atexit.register(report, self.compiler_opt)

if self.have_f_sources():
from numpy.distutils.fcompiler import new_fcompiler
Expand Down
9 changes: 5 additions & 4 deletions numpy/distutils/command/build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,12 @@ def run(self):
log.info("Detected changes on compiler optimizations, force rebuilding")
self.force = True

import atexit
def report():
def report(copt):
log.info("\n########### EXT COMPILER OPTIMIZATION ###########")
log.info(self.compiler_opt.report(full=True))
atexit.register(report)
log.info(copt.report(full=True))

import atexit
atexit.register(report, self.compiler_opt)

# Setup directory for storing generated extra DLL files on Windows
self.extra_dll_dir = os.path.join(self.build_temp, '.libs')
Expand Down
0