Skip to content

[document] Add vcpkg instruction step #96818

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,27 @@ Profile Guided Optimization (PGO) and may be used to auto-enable Link Time
Optimization (LTO) on some platforms. For more details, see the sections
below.

Package manager
^^^^^^^^^^^^^^^^^^^^^^^^^^^
`vcpkg <https://github.com/microsoft/vcpkg>`_ is a package manager that supports
all platforms (Windows, Linux and MacOS), you can easily use vcpkg to install
third-party libraries with one command.

Use the following steps to build cpython::

git clone https://github.com/microsoft/vcpkg.git
./bootstrap-vcpkg.bat # for powershell
./bootstrap-vcpkg.sh # for bash
./vcpkg install python3

See `document <https://github.com/microsoft/vcpkg#getting-started>`_ for more usage information.
Please clone vcpkg in a non-whitespace and no non-ascii path anywhere.
To remove vcpkg, you just need to remove the vcpkg folder.

Please use `this link
<https://github.com/microsoft/vcpkg/issues/new?assignees=&labels=category%3Aport-bug&template=report-package-build-failure.md&title=%5B%3Cport+name%3E%5D+build+failure>`_
to create an issue to vcpkg if you encounter any issues.

Profile Guided Optimization
^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down
Loading