Skip to content

Update outdated C++17 and Python 2 references#5045

Closed
Chessing234 wants to merge 1 commit intofacebookresearch:mainfrom
Chessing234:fix/update-outdated-cpp-and-python-references
Closed

Update outdated C++17 and Python 2 references#5045
Chessing234 wants to merge 1 commit intofacebookresearch:mainfrom
Chessing234:fix/update-outdated-cpp-and-python-references

Conversation

@Chessing234
Copy link
Copy Markdown
Contributor

Summary

  • Update C++ language level from C++17 to C++20 in CONTRIBUTING.md to match the actual CMake configuration (CMAKE_CXX_STANDARD 20 in the root CMakeLists.txt)
  • Remove outdated "progressively dropping python2 support" note from contrib/README.md (Python 2 reached end-of-life in January 2020 and Faiss requires Python 3)
  • Update shebangs from python2 to python3 in three benchmark scripts: benchs/kmeans_mnist.py, benchs/bench_gpu_1bn.py, and benchs/bench_vector_ops.py

Test plan

  • No functional code changes; only documentation and shebangs are modified
  • Verified C++20 is the actual standard by checking CMakeLists.txt (set(CMAKE_CXX_STANDARD 20)) and INSTALL.md (which already references "a C++20 compiler")

🤖 Generated with Claude Code

- Update C++ language level from C++17 to C++20 in CONTRIBUTING.md to
  match the actual CMake configuration (CMAKE_CXX_STANDARD 20)
- Remove outdated "progressively dropping python2 support" note from
  contrib/README.md (Python 2 reached EOL in January 2020)
- Update shebangs from python2 to python3 in benchs/kmeans_mnist.py,
  benchs/bench_gpu_1bn.py, and benchs/bench_vector_ops.py

Signed-off-by: Taksh <takshkothari09@gmail.com>
@meta-cla meta-cla bot added the CLA Signed label Apr 6, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync bot commented Apr 6, 2026

@alibeklfc has imported this pull request. If you are a Meta employee, you can view this in D99691731.

@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync bot commented Apr 6, 2026

@alibeklfc merged this pull request in faeac86.

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.

1 participant