Skip to content
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

Update cmake builder for recent setuptools #2847

Merged
merged 2 commits into from
May 26, 2023

Conversation

jsiirola
Copy link
Member

Fixes # .

Summary/Motivation:

This resolves an error when using the cmake builder directly with recent setuptools distributions. This resolves errors when attempting to build specific extensions, e.g.,

python -m pyomo.contrib.pynumero.build

Changes proposed in this PR:

  • Update import order for setuputils/distutils
  • Expand PyNumero installation instructions

Legal Acknowledgement

By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

This avoids a fatal error when running directly with recent setuptools distributions
@codecov
Copy link

codecov bot commented May 26, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01 ⚠️

Comparison is base (d8cbd46) 87.44% compared to head (2303e4e) 87.43%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2847      +/-   ##
==========================================
- Coverage   87.44%   87.43%   -0.01%     
==========================================
  Files         771      771              
  Lines       89539    89539              
==========================================
- Hits        78294    78288       -6     
- Misses      11245    11251       +6     
Flag Coverage Δ
linux 84.50% <100.00%> (ø)
osx 74.53% <100.00%> (-0.01%) ⬇️
other 84.67% <100.00%> (ø)
win 82.07% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pyomo/common/cmake_builder.py 94.02% <100.00%> (ø)

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@blnicho blnicho merged commit 8a9747c into Pyomo:main May 26, 2023
@jsiirola jsiirola deleted the cmake-builder-import branch May 30, 2023 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants