Skip to content

Ninja update to avoid build fail on python3.13 #2392

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

Closed
wants to merge 2 commits into from

Conversation

novitae
Copy link
Contributor

@novitae novitae commented Mar 2, 2025

When building from scratch folly on python 3.13, here is the issue you will encounter:

Extract /private/tmp/follyt/downloads/ninja-v1.10.2.tar.gz -> /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz
Building ninja...
---
+ cd /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2 && \
+ /opt/homebrew/opt/[email protected]/bin/python3.13 \
+      configure.py \
+      --bootstrap
Traceback (most recent call last):
  File "/private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2/configure.py", line 26, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'
Command '['/opt/homebrew/opt/[email protected]/bin/python3.13', 'configure.py', '--bootstrap']' returned non-zero exit status 1.
!! Failed

(python3.13 ./build/fbcode_builder/getdeps.py build --scratch-path /tmp/follyt)

This is because the version 1.10.2 of ninja uses pipes, which has been deprecated since python 3.11 and removed in python 3.13. 1

This PR changes the ninja dependency from 1.10.2 to 1.12.1.

Footnotes

  1. https://docs.python.org/3/library/pipes.html

@facebook-github-bot
Copy link
Contributor

Hi @novitae!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

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!

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@mszabo-wikia
Copy link
Contributor

CC @Orvid—the old bundled ninja version appears to have become a source of confusion (facebook/watchman#1284, facebook/mvfst#398). While --allow-system-packages avoids the error, having getdeps.py work OOTB on such systems could probably help reduce the number of such reports.

@facebook-github-bot
Copy link
Contributor

@Orvid has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot pushed a commit to facebookexperimental/moxygen that referenced this pull request Jun 25, 2025
Summary:
When building from scratch folly on python 3.13, here is the issue you will encounter:
```
Extract /private/tmp/follyt/downloads/ninja-v1.10.2.tar.gz -> /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz
Building ninja...
 ---
+ cd /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2 && \
+ /opt/homebrew/opt/[email protected]/bin/python3.13 \
+      configure.py \
+      --bootstrap
Traceback (most recent call last):
  File "/private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2/configure.py", line 26, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'
Command '['/opt/homebrew/opt/[email protected]/bin/python3.13', 'configure.py', '--bootstrap']' returned non-zero exit status 1.
!! Failed
```
(`python3.13 ./build/fbcode_builder/getdeps.py build --scratch-path /tmp/follyt`)

This is because the version `1.10.2` of ninja uses `pipes`, which has been deprecated since python 3.11 and removed in python 3.13. [^1]

This PR changes the ninja dependency from 1.10.2 to 1.12.1.

[^1]: https://docs.python.org/3/library/pipes.html

X-link: facebook/folly#2392

Reviewed By: yfeldblum

Differential Revision: D76523565

Pulled By: Orvid

fbshipit-source-id: 8ba5b96b3a01334ab9b04e62c80588868273bb25
facebook-github-bot pushed a commit to facebook/fb303 that referenced this pull request Jun 25, 2025
Summary:
When building from scratch folly on python 3.13, here is the issue you will encounter:
```
Extract /private/tmp/follyt/downloads/ninja-v1.10.2.tar.gz -> /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz
Building ninja...
 ---
+ cd /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2 && \
+ /opt/homebrew/opt/[email protected]/bin/python3.13 \
+      configure.py \
+      --bootstrap
Traceback (most recent call last):
  File "/private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2/configure.py", line 26, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'
Command '['/opt/homebrew/opt/[email protected]/bin/python3.13', 'configure.py', '--bootstrap']' returned non-zero exit status 1.
!! Failed
```
(`python3.13 ./build/fbcode_builder/getdeps.py build --scratch-path /tmp/follyt`)

This is because the version `1.10.2` of ninja uses `pipes`, which has been deprecated since python 3.11 and removed in python 3.13. [^1]

This PR changes the ninja dependency from 1.10.2 to 1.12.1.

[^1]: https://docs.python.org/3/library/pipes.html

X-link: facebook/folly#2392

Reviewed By: yfeldblum

Differential Revision: D76523565

Pulled By: Orvid

fbshipit-source-id: 8ba5b96b3a01334ab9b04e62c80588868273bb25
facebook-github-bot pushed a commit to facebookincubator/hsthrift that referenced this pull request Jun 25, 2025
Summary:
When building from scratch folly on python 3.13, here is the issue you will encounter:
```
Extract /private/tmp/follyt/downloads/ninja-v1.10.2.tar.gz -> /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz
Building ninja...
 ---
+ cd /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2 && \
+ /opt/homebrew/opt/[email protected]/bin/python3.13 \
+      configure.py \
+      --bootstrap
Traceback (most recent call last):
  File "/private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2/configure.py", line 26, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'
Command '['/opt/homebrew/opt/[email protected]/bin/python3.13', 'configure.py', '--bootstrap']' returned non-zero exit status 1.
!! Failed
```
(`python3.13 ./build/fbcode_builder/getdeps.py build --scratch-path /tmp/follyt`)

This is because the version `1.10.2` of ninja uses `pipes`, which has been deprecated since python 3.11 and removed in python 3.13. [^1]

This PR changes the ninja dependency from 1.10.2 to 1.12.1.

[^1]: https://docs.python.org/3/library/pipes.html

X-link: facebook/folly#2392

Reviewed By: yfeldblum

Differential Revision: D76523565

Pulled By: Orvid

fbshipit-source-id: 8ba5b96b3a01334ab9b04e62c80588868273bb25
facebook-github-bot pushed a commit to facebook/CacheLib that referenced this pull request Jun 25, 2025
Summary:
When building from scratch folly on python 3.13, here is the issue you will encounter:
```
Extract /private/tmp/follyt/downloads/ninja-v1.10.2.tar.gz -> /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz
Building ninja...
 ---
+ cd /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2 && \
+ /opt/homebrew/opt/[email protected]/bin/python3.13 \
+      configure.py \
+      --bootstrap
Traceback (most recent call last):
  File "/private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2/configure.py", line 26, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'
Command '['/opt/homebrew/opt/[email protected]/bin/python3.13', 'configure.py', '--bootstrap']' returned non-zero exit status 1.
!! Failed
```
(`python3.13 ./build/fbcode_builder/getdeps.py build --scratch-path /tmp/follyt`)

This is because the version `1.10.2` of ninja uses `pipes`, which has been deprecated since python 3.11 and removed in python 3.13. [^1]

This PR changes the ninja dependency from 1.10.2 to 1.12.1.

[^1]: https://docs.python.org/3/library/pipes.html

X-link: facebook/folly#2392

Reviewed By: yfeldblum

Differential Revision: D76523565

Pulled By: Orvid

fbshipit-source-id: 8ba5b96b3a01334ab9b04e62c80588868273bb25
facebook-github-bot pushed a commit to facebook/wangle that referenced this pull request Jun 25, 2025
Summary:
When building from scratch folly on python 3.13, here is the issue you will encounter:
```
Extract /private/tmp/follyt/downloads/ninja-v1.10.2.tar.gz -> /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz
Building ninja...
 ---
+ cd /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2 && \
+ /opt/homebrew/opt/[email protected]/bin/python3.13 \
+      configure.py \
+      --bootstrap
Traceback (most recent call last):
  File "/private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2/configure.py", line 26, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'
Command '['/opt/homebrew/opt/[email protected]/bin/python3.13', 'configure.py', '--bootstrap']' returned non-zero exit status 1.
!! Failed
```
(`python3.13 ./build/fbcode_builder/getdeps.py build --scratch-path /tmp/follyt`)

This is because the version `1.10.2` of ninja uses `pipes`, which has been deprecated since python 3.11 and removed in python 3.13. [^1]

This PR changes the ninja dependency from 1.10.2 to 1.12.1.

[^1]: https://docs.python.org/3/library/pipes.html

X-link: facebook/folly#2392

Reviewed By: yfeldblum

Differential Revision: D76523565

Pulled By: Orvid

fbshipit-source-id: 8ba5b96b3a01334ab9b04e62c80588868273bb25
facebook-github-bot pushed a commit to facebookincubator/fizz that referenced this pull request Jun 25, 2025
Summary:
When building from scratch folly on python 3.13, here is the issue you will encounter:
```
Extract /private/tmp/follyt/downloads/ninja-v1.10.2.tar.gz -> /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz
Building ninja...
 ---
+ cd /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2 && \
+ /opt/homebrew/opt/[email protected]/bin/python3.13 \
+      configure.py \
+      --bootstrap
Traceback (most recent call last):
  File "/private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2/configure.py", line 26, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'
Command '['/opt/homebrew/opt/[email protected]/bin/python3.13', 'configure.py', '--bootstrap']' returned non-zero exit status 1.
!! Failed
```
(`python3.13 ./build/fbcode_builder/getdeps.py build --scratch-path /tmp/follyt`)

This is because the version `1.10.2` of ninja uses `pipes`, which has been deprecated since python 3.11 and removed in python 3.13. [^1]

This PR changes the ninja dependency from 1.10.2 to 1.12.1.

[^1]: https://docs.python.org/3/library/pipes.html

X-link: facebook/folly#2392

Reviewed By: yfeldblum

Differential Revision: D76523565

Pulled By: Orvid

fbshipit-source-id: 8ba5b96b3a01334ab9b04e62c80588868273bb25
facebook-github-bot pushed a commit to facebookexperimental/edencommon that referenced this pull request Jun 25, 2025
Summary:
When building from scratch folly on python 3.13, here is the issue you will encounter:
```
Extract /private/tmp/follyt/downloads/ninja-v1.10.2.tar.gz -> /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz
Building ninja...
 ---
+ cd /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2 && \
+ /opt/homebrew/opt/[email protected]/bin/python3.13 \
+      configure.py \
+      --bootstrap
Traceback (most recent call last):
  File "/private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2/configure.py", line 26, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'
Command '['/opt/homebrew/opt/[email protected]/bin/python3.13', 'configure.py', '--bootstrap']' returned non-zero exit status 1.
!! Failed
```
(`python3.13 ./build/fbcode_builder/getdeps.py build --scratch-path /tmp/follyt`)

This is because the version `1.10.2` of ninja uses `pipes`, which has been deprecated since python 3.11 and removed in python 3.13. [^1]

This PR changes the ninja dependency from 1.10.2 to 1.12.1.

[^1]: https://docs.python.org/3/library/pipes.html

X-link: facebook/folly#2392

Reviewed By: yfeldblum

Differential Revision: D76523565

Pulled By: Orvid

fbshipit-source-id: 8ba5b96b3a01334ab9b04e62c80588868273bb25
facebook-github-bot pushed a commit to facebook/fboss that referenced this pull request Jun 25, 2025
Summary:
When building from scratch folly on python 3.13, here is the issue you will encounter:
```
Extract /private/tmp/follyt/downloads/ninja-v1.10.2.tar.gz -> /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz
Building ninja...
 ---
+ cd /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2 && \
+ /opt/homebrew/opt/[email protected]/bin/python3.13 \
+      configure.py \
+      --bootstrap
Traceback (most recent call last):
  File "/private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2/configure.py", line 26, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'
Command '['/opt/homebrew/opt/[email protected]/bin/python3.13', 'configure.py', '--bootstrap']' returned non-zero exit status 1.
!! Failed
```
(`python3.13 ./build/fbcode_builder/getdeps.py build --scratch-path /tmp/follyt`)

This is because the version `1.10.2` of ninja uses `pipes`, which has been deprecated since python 3.11 and removed in python 3.13. [^1]

This PR changes the ninja dependency from 1.10.2 to 1.12.1.

[^1]: https://docs.python.org/3/library/pipes.html

X-link: facebook/folly#2392

Reviewed By: yfeldblum

Differential Revision: D76523565

Pulled By: Orvid

fbshipit-source-id: 8ba5b96b3a01334ab9b04e62c80588868273bb25
facebook-github-bot pushed a commit to facebookexperimental/rust-shed that referenced this pull request Jun 25, 2025
Summary:
When building from scratch folly on python 3.13, here is the issue you will encounter:
```
Extract /private/tmp/follyt/downloads/ninja-v1.10.2.tar.gz -> /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz
Building ninja...
 ---
+ cd /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2 && \
+ /opt/homebrew/opt/[email protected]/bin/python3.13 \
+      configure.py \
+      --bootstrap
Traceback (most recent call last):
  File "/private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2/configure.py", line 26, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'
Command '['/opt/homebrew/opt/[email protected]/bin/python3.13', 'configure.py', '--bootstrap']' returned non-zero exit status 1.
!! Failed
```
(`python3.13 ./build/fbcode_builder/getdeps.py build --scratch-path /tmp/follyt`)

This is because the version `1.10.2` of ninja uses `pipes`, which has been deprecated since python 3.11 and removed in python 3.13. [^1]

This PR changes the ninja dependency from 1.10.2 to 1.12.1.

[^1]: https://docs.python.org/3/library/pipes.html

X-link: facebook/folly#2392

Reviewed By: yfeldblum

Differential Revision: D76523565

Pulled By: Orvid

fbshipit-source-id: 8ba5b96b3a01334ab9b04e62c80588868273bb25
facebook-github-bot pushed a commit to facebook/openr that referenced this pull request Jun 25, 2025
Summary:
When building from scratch folly on python 3.13, here is the issue you will encounter:
```
Extract /private/tmp/follyt/downloads/ninja-v1.10.2.tar.gz -> /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz
Building ninja...
 ---
+ cd /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2 && \
+ /opt/homebrew/opt/[email protected]/bin/python3.13 \
+      configure.py \
+      --bootstrap
Traceback (most recent call last):
  File "/private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2/configure.py", line 26, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'
Command '['/opt/homebrew/opt/[email protected]/bin/python3.13', 'configure.py', '--bootstrap']' returned non-zero exit status 1.
!! Failed
```
(`python3.13 ./build/fbcode_builder/getdeps.py build --scratch-path /tmp/follyt`)

This is because the version `1.10.2` of ninja uses `pipes`, which has been deprecated since python 3.11 and removed in python 3.13. [^1]

This PR changes the ninja dependency from 1.10.2 to 1.12.1.

[^1]: https://docs.python.org/3/library/pipes.html

X-link: facebook/folly#2392

Reviewed By: yfeldblum

Differential Revision: D76523565

Pulled By: Orvid

fbshipit-source-id: 8ba5b96b3a01334ab9b04e62c80588868273bb25
facebook-github-bot pushed a commit to facebook/fbthrift that referenced this pull request Jun 25, 2025
Summary:
When building from scratch folly on python 3.13, here is the issue you will encounter:
```
Extract /private/tmp/follyt/downloads/ninja-v1.10.2.tar.gz -> /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz
Building ninja...
 ---
+ cd /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2 && \
+ /opt/homebrew/opt/[email protected]/bin/python3.13 \
+      configure.py \
+      --bootstrap
Traceback (most recent call last):
  File "/private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2/configure.py", line 26, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'
Command '['/opt/homebrew/opt/[email protected]/bin/python3.13', 'configure.py', '--bootstrap']' returned non-zero exit status 1.
!! Failed
```
(`python3.13 ./build/fbcode_builder/getdeps.py build --scratch-path /tmp/follyt`)

This is because the version `1.10.2` of ninja uses `pipes`, which has been deprecated since python 3.11 and removed in python 3.13. [^1]

This PR changes the ninja dependency from 1.10.2 to 1.12.1.

[^1]: https://docs.python.org/3/library/pipes.html

X-link: facebook/folly#2392

Reviewed By: yfeldblum

Differential Revision: D76523565

Pulled By: Orvid

fbshipit-source-id: 8ba5b96b3a01334ab9b04e62c80588868273bb25
facebook-github-bot pushed a commit to facebook/proxygen that referenced this pull request Jun 25, 2025
Summary:
When building from scratch folly on python 3.13, here is the issue you will encounter:
```
Extract /private/tmp/follyt/downloads/ninja-v1.10.2.tar.gz -> /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz
Building ninja...
 ---
+ cd /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2 && \
+ /opt/homebrew/opt/[email protected]/bin/python3.13 \
+      configure.py \
+      --bootstrap
Traceback (most recent call last):
  File "/private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2/configure.py", line 26, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'
Command '['/opt/homebrew/opt/[email protected]/bin/python3.13', 'configure.py', '--bootstrap']' returned non-zero exit status 1.
!! Failed
```
(`python3.13 ./build/fbcode_builder/getdeps.py build --scratch-path /tmp/follyt`)

This is because the version `1.10.2` of ninja uses `pipes`, which has been deprecated since python 3.11 and removed in python 3.13. [^1]

This PR changes the ninja dependency from 1.10.2 to 1.12.1.

[^1]: https://docs.python.org/3/library/pipes.html

X-link: facebook/folly#2392

Reviewed By: yfeldblum

Differential Revision: D76523565

Pulled By: Orvid

fbshipit-source-id: 8ba5b96b3a01334ab9b04e62c80588868273bb25
facebook-github-bot pushed a commit to facebook/mvfst that referenced this pull request Jun 25, 2025
Summary:
When building from scratch folly on python 3.13, here is the issue you will encounter:
```
Extract /private/tmp/follyt/downloads/ninja-v1.10.2.tar.gz -> /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz
Building ninja...
 ---
+ cd /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2 && \
+ /opt/homebrew/opt/[email protected]/bin/python3.13 \
+      configure.py \
+      --bootstrap
Traceback (most recent call last):
  File "/private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2/configure.py", line 26, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'
Command '['/opt/homebrew/opt/[email protected]/bin/python3.13', 'configure.py', '--bootstrap']' returned non-zero exit status 1.
!! Failed
```
(`python3.13 ./build/fbcode_builder/getdeps.py build --scratch-path /tmp/follyt`)

This is because the version `1.10.2` of ninja uses `pipes`, which has been deprecated since python 3.11 and removed in python 3.13. [^1]

This PR changes the ninja dependency from 1.10.2 to 1.12.1.

[^1]: https://docs.python.org/3/library/pipes.html

X-link: facebook/folly#2392

Reviewed By: yfeldblum

Differential Revision: D76523565

Pulled By: Orvid

fbshipit-source-id: 8ba5b96b3a01334ab9b04e62c80588868273bb25
facebook-github-bot pushed a commit to facebookincubator/katran that referenced this pull request Jun 25, 2025
Summary:
When building from scratch folly on python 3.13, here is the issue you will encounter:
```
Extract /private/tmp/follyt/downloads/ninja-v1.10.2.tar.gz -> /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz
Building ninja...
 ---
+ cd /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2 && \
+ /opt/homebrew/opt/[email protected]/bin/python3.13 \
+      configure.py \
+      --bootstrap
Traceback (most recent call last):
  File "/private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2/configure.py", line 26, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'
Command '['/opt/homebrew/opt/[email protected]/bin/python3.13', 'configure.py', '--bootstrap']' returned non-zero exit status 1.
!! Failed
```
(`python3.13 ./build/fbcode_builder/getdeps.py build --scratch-path /tmp/follyt`)

This is because the version `1.10.2` of ninja uses `pipes`, which has been deprecated since python 3.11 and removed in python 3.13. [^1]

This PR changes the ninja dependency from 1.10.2 to 1.12.1.

[^1]: https://docs.python.org/3/library/pipes.html

X-link: facebook/folly#2392

Reviewed By: yfeldblum

Differential Revision: D76523565

Pulled By: Orvid

fbshipit-source-id: 8ba5b96b3a01334ab9b04e62c80588868273bb25
facebook-github-bot pushed a commit to facebook/sapling that referenced this pull request Jun 25, 2025
Summary:
When building from scratch folly on python 3.13, here is the issue you will encounter:
```
Extract /private/tmp/follyt/downloads/ninja-v1.10.2.tar.gz -> /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz
Building ninja...
 ---
+ cd /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2 && \
+ /opt/homebrew/opt/[email protected]/bin/python3.13 \
+      configure.py \
+      --bootstrap
Traceback (most recent call last):
  File "/private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2/configure.py", line 26, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'
Command '['/opt/homebrew/opt/[email protected]/bin/python3.13', 'configure.py', '--bootstrap']' returned non-zero exit status 1.
!! Failed
```
(`python3.13 ./build/fbcode_builder/getdeps.py build --scratch-path /tmp/follyt`)

This is because the version `1.10.2` of ninja uses `pipes`, which has been deprecated since python 3.11 and removed in python 3.13. [^1]

This PR changes the ninja dependency from 1.10.2 to 1.12.1.

[^1]: https://docs.python.org/3/library/pipes.html

X-link: facebook/folly#2392

Reviewed By: yfeldblum

Differential Revision: D76523565

Pulled By: Orvid

fbshipit-source-id: 8ba5b96b3a01334ab9b04e62c80588868273bb25
facebook-github-bot pushed a commit to facebook/hhvm that referenced this pull request Jun 25, 2025
Summary:
When building from scratch folly on python 3.13, here is the issue you will encounter:
```
Extract /private/tmp/follyt/downloads/ninja-v1.10.2.tar.gz -> /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz
Building ninja...
 ---
+ cd /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2 && \
+ /opt/homebrew/opt/[email protected]/bin/python3.13 \
+      configure.py \
+      --bootstrap
Traceback (most recent call last):
  File "/private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2/configure.py", line 26, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'
Command '['/opt/homebrew/opt/[email protected]/bin/python3.13', 'configure.py', '--bootstrap']' returned non-zero exit status 1.
!! Failed
```
(`python3.13 ./build/fbcode_builder/getdeps.py build --scratch-path /tmp/follyt`)

This is because the version `1.10.2` of ninja uses `pipes`, which has been deprecated since python 3.11 and removed in python 3.13. [^1]

This PR changes the ninja dependency from 1.10.2 to 1.12.1.

[^1]: https://docs.python.org/3/library/pipes.html

X-link: facebook/folly#2392

Reviewed By: yfeldblum

Differential Revision: D76523565

Pulled By: Orvid

fbshipit-source-id: 8ba5b96b3a01334ab9b04e62c80588868273bb25
facebook-github-bot pushed a commit to facebook/watchman that referenced this pull request Jun 25, 2025
Summary:
When building from scratch folly on python 3.13, here is the issue you will encounter:
```
Extract /private/tmp/follyt/downloads/ninja-v1.10.2.tar.gz -> /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz
Building ninja...
 ---
+ cd /private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2 && \
+ /opt/homebrew/opt/[email protected]/bin/python3.13 \
+      configure.py \
+      --bootstrap
Traceback (most recent call last):
  File "/private/tmp/follyt/extracted/ninja-v1.10.2.tar.gz/ninja-1.10.2/configure.py", line 26, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'
Command '['/opt/homebrew/opt/[email protected]/bin/python3.13', 'configure.py', '--bootstrap']' returned non-zero exit status 1.
!! Failed
```
(`python3.13 ./build/fbcode_builder/getdeps.py build --scratch-path /tmp/follyt`)

This is because the version `1.10.2` of ninja uses `pipes`, which has been deprecated since python 3.11 and removed in python 3.13. [^1]

This PR changes the ninja dependency from 1.10.2 to 1.12.1.

[^1]: https://docs.python.org/3/library/pipes.html

X-link: facebook/folly#2392

Reviewed By: yfeldblum

Differential Revision: D76523565

Pulled By: Orvid

fbshipit-source-id: 8ba5b96b3a01334ab9b04e62c80588868273bb25
@facebook-github-bot
Copy link
Contributor

@Orvid merged this pull request in 184c2df.

@mszabo-wikia
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants