Skip to content

Commit

Permalink
Trying to prefix paths with a period and slash to fix truncation
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwright committed Jul 15, 2024
1 parent 19a0e69 commit 773492c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-vtk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,12 @@ jobs:
run: |
wheel_file=$(ls vtk/build/dist/*.whl | xargs -n 1 basename) # Get the wheel file name from an ls of the dist directory
echo $wheel_file
mkdir wheel_build/ # Make a separate build directory
unzip vtk/build/dist/${wheel_file} -d wheel_build/ # Extract the wheel file
sed -i 's/Name:.*$/Name: cadquery_vtk/' wheel_build/*.dist-info/METADATA # Change the name in the METADATA file
sed -i 's/Version:.9.2.6.dev0$/Version: 9.2.6/' wheel_build/*.dist-info/METADATA # Remove the .dev0 from the version in the METADATA file
mv wheel_build/*.dist-info wheel_build/cadquery_vtk-9.2.6.dist-info # Rename the dist-info file to the new name
wheel pack wheel_build/; # Create a new wheel file with the new name by prepending "cadquery_" to the name
mkdir ./wheel_build/ # Make a separate build directory
unzip vtk/build/dist/${wheel_file} -d ./wheel_build/ # Extract the wheel file
sed -i 's/Name:.*$/Name: cadquery_vtk/' ./wheel_build/*.dist-info/METADATA # Change the name in the METADATA file
sed -i 's/Version:.9.2.6.dev0$/Version: 9.2.6/' ./wheel_build/*.dist-info/METADATA # Remove the .dev0 from the version in the METADATA file
mv ./wheel_build/*.dist-info ./wheel_build/cadquery_vtk-9.2.6.dist-info # Rename the dist-info file to the new name
wheel pack ./wheel_build/; # Create a new wheel file with the new name by prepending "cadquery_" to the name
rm ./vtk/build/dist/*.whl # Remove the old wheel file
mv /*.whl ./vtk/build/dist/ # Move the new wheel file to the dist directory
# new_wheel_file=$(ls wheel_build/*.whl | xargs -n 1 basename)
Expand Down

0 comments on commit 773492c

Please sign in to comment.