-
Notifications
You must be signed in to change notification settings - Fork 35
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
[3.10+][1/n] Add conditional archiving for libmpdec module #106
base: main
Are you sure you want to change the base?
Conversation
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
@anirbanr-fb-r2p has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Codecov Report
@@ Coverage Diff @@
## main #106 +/- ##
==========================================
- Coverage 88.94% 88.86% -0.09%
==========================================
Files 65 65
Lines 3862 3869 +7
==========================================
+ Hits 3435 3438 +3
- Misses 427 431 +4
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
[3.10+][1/n] Add conditional archiving for libmpdec module
Seems changes from prev PR got picked up. |
@anirbanr-fb-r2p has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
1 similar comment
@anirbanr-fb-r2p has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
SET(PYTHON_STDLIB "${PYTHON_INSTALL_DIR}/lib/libpython_stdlib3.8.a") | ||
SET(PYTHON_STDLIB "${PYTHON_INSTALL_DIR}/lib/libpython_stdlib{CPYTHON_VERSION}.a") | ||
|
||
if(${CPYTHON_VERSION} MATCHES "3\.[8-9]") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like later on versioning updates to python might be annoying, it may be a good idea to document the process or turn this logic into a function to make the process a bit easier. Otherwise, lgtm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm barring CI failures which should be addressed before pushing ofc :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm barring CI failures which should be addressed before pushing ofc :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new unit test seems reasonable.
Also before pushing please replace the fburls to github urls as this is open source + fix CI errors with cpython installation!
@anirbanr-fb-r2p has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
@anirbanr-fb-r2p has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
Hi @anirbanr-fb-r2p! Thank you for your pull request. We require contributors to sign our Contributor License Agreement, and yours needs attention. You currently have a record in our system, but the CLA is no longer valid, and will need to be resubmitted. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
Cpython has had some changes from v3.10 onwards, for example https://fburl.com/diffing/lrcq4gej .
We want to add some conditional inclusions to multipy cmake to support these changes.
Step 1/n : Replace the removed _decimal/libmpdec/memory.o with _decimal/libmpdec/mpalloc.o.