Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Get Buck working for 3.10 (backport to main) #2697

Merged
merged 1 commit into from
May 5, 2022
Merged

Conversation

bigfootjon
Copy link
Member

@bigfootjon bigfootjon commented May 4, 2022

Cherry-picked from 1ae1e6c (#2696)

Fixes: #2678

Test plan:

I ran buck for a personal project that uses py3.10 syntax (Foo | None) and it was able to build and run correctly

Original commit message:

On 3.10 some collections classes have been moved to
collections.abc and it causes Buck 1 to crash. This diff fixes those
instances.

Really pex should be upgraded, but I made an attempt and it was very difficult
due to our custom changes to pex.

Reviewed By: bigfootjon

fbshipit-source-id: 15a7bb96e664d5169b12de09e9157571782c861f

Cherry-picked from
1ae1e6c

Summary:
Pull Request resolved: #2696

On 3.10 some `collections` classes have been moved to
`collections.abc` and it causes Buck 1 to crash. This diff fixes those
instances.

Really pex should be upgraded, but I made an attempt and it was very difficult
due to our custom changes to pex.

Reviewed By: bigfootjon

fbshipit-source-id: 15a7bb96e664d5169b12de09e9157571782c861f
@bigfootjon bigfootjon changed the title Get Buck working for 3.10 Get Buck working for 3.10 (backport to main) May 4, 2022
@bigfootjon bigfootjon merged commit a8e25cb into main May 5, 2022
@bigfootjon bigfootjon deleted the python3.10-on-main branch May 5, 2022 20:03
shepting pushed a commit to airbnb/buck that referenced this pull request Aug 23, 2022
Cherry-picked from
facebook@1ae1e6c

Summary:
Pull Request resolved: facebook#2696

On 3.10 some `collections` classes have been moved to
`collections.abc` and it causes Buck 1 to crash. This diff fixes those
instances.

Really pex should be upgraded, but I made an attempt and it was very difficult
due to our custom changes to pex.

Reviewed By: bigfootjon

fbshipit-source-id: 15a7bb96e664d5169b12de09e9157571782c861f

Co-authored-by: Lisa Roach <lisroach@fb.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants