Skip to content

Commit

Permalink
[libtorch] remove x_vcpkg_get_python_packages
Browse files Browse the repository at this point in the history
  • Loading branch information
luncliff committed Oct 8, 2023
1 parent a563517 commit e6df79b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
mkdir -p ${VCPKG_DEFAULT_BINARY_CACHE}
- uses: actions/cache@v3
with:
key: "v2339-${{ runner.os }}-${{ matrix.triplet }}"
key: "v2340-libtorch-${{ runner.os }}-${{ matrix.triplet }}"
path: |
/usr/local/share/vcpkg-downloads
/usr/local/share/vcpkg-archives
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
VCPKG_DEFAULT_BINARY_CACHE: "${{ runner.temp }}/vcpkg-archives"
- uses: actions/cache@v3
with:
key: "v2339-${{ runner.os }}-${{ matrix.triplet }}"
key: "v2340-libtorch-${{ runner.os }}-${{ matrix.triplet }}"
path: |
${{ runner.temp }}/vcpkg-downloads
${{ runner.temp }}/vcpkg-archives
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
New-Item -Type Directory -Force ${env:VCPKG_DEFAULT_BINARY_CACHE}
- uses: actions/cache@v3
with:
key: "v2339-${{ runner.os }}-${{ matrix.triplet }}"
key: "v2340-libtorch-${{ runner.os }}-${{ matrix.triplet }}"
path: |
C:/vcpkg/downloads
C:/vcpkg/archives
Expand Down
8 changes: 3 additions & 5 deletions ports/libtorch/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ vcpkg_execute_required_process(
find_program(PROTOC NAMES protoc PATHS "${CURRENT_HOST_INSTALLED_DIR}/tools/protobuf" REQUIRED NO_DEFAULT_PATH NO_CMAKE_PATH)
message(STATUS "Using protoc: ${PROTOC}")

x_vcpkg_get_python_packages(
PYTHON_VERSION 3
PACKAGES typing-extensions pyyaml numpy sympy
OUT_PYTHON_VAR PYTHON3
)
vcpkg_find_acquire_program(PYTHON3)
message(STATUS "Using Python3: ${PYTHON3}")
get_filename_component(PYTHON_PATH "${PYTHON3}" PATH)
vcpkg_add_to_path(PREPEND "${PYTHON_PATH}")

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
Expand Down
4 changes: 0 additions & 4 deletions ports/libtorch/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@
{
"name": "vcpkg-cmake-config",
"host": true
},
{
"name": "vcpkg-get-python-packages",
"host": true
}
],
"default-features": [
Expand Down

0 comments on commit e6df79b

Please sign in to comment.