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

[3.10+][1/n] Add conditional archiving for libmpdec module #106

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

anirbanr-fb-r2p
Copy link
Contributor

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.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 30, 2022
@facebook-github-bot
Copy link
Contributor

@anirbanr-fb-r2p has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@codecov
Copy link

codecov bot commented Jul 30, 2022

Codecov Report

Merging #106 (14a77e7) into main (5af38eb) will decrease coverage by 0.08%.
The diff coverage is n/a.

❗ Current head 14a77e7 differs from pull request most recent head abd2cfe. Consider uploading reports for the commit abd2cfe to get more accurate results

@@            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     
Impacted Files Coverage Δ
multipy/package/package_exporter.py 82.92% <0.00%> (-3.56%) ⬇️
multipy/package/package_importer.py 94.59% <0.00%> (-2.59%) ⬇️

📣 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
@anirbanr-fb-r2p
Copy link
Contributor Author

Seems changes from prev PR got picked up.

@facebook-github-bot
Copy link
Contributor

@anirbanr-fb-r2p has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

1 similar comment
@facebook-github-bot
Copy link
Contributor

@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]")
Copy link
Contributor

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.

Copy link
Contributor

@PaliC PaliC left a 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 :)

@PaliC PaliC self-requested a review August 3, 2022 19:09
Copy link
Contributor

@PaliC PaliC left a 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 :)

Copy link
Contributor

@PaliC PaliC left a 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!

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
@facebook-github-bot
Copy link
Contributor

@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:
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
@facebook-github-bot
Copy link
Contributor

@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:
@facebook-github-bot
Copy link
Contributor

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.

Process

In 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 CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants