Skip to content
Snippets Groups Projects
Commit 80a87b43 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

sdktowheel python3.8 compatibility

parent ebea3c7e
No related branches found
No related tags found
No related merge requests found
......@@ -375,17 +375,8 @@ pypi_official_snapshot:
- windows64-sdk_official_snapshot
- macos64-sdk_official_snapshot
script:
- echo "step 0"
- pwd
- echo "step 1"
- cd build
- pwd
- ls -al
- echo "step 2"
- python3 --version
- cat ../utils/pypi/sdktowheel.py
- python3 ../utils/pypi/sdktowheel.py _CPack_Packages/Linux/TGZ/gmsh-git-Linux64-sdk/ manylinux1_x86_64
- echo "step 3"
- python3 ../utils/pypi/sdktowheel.py _CPack_Packages/Linux/TGZ/gmsh-nox-git-Linux64-sdk/ manylinux1_x86_64
- python3 ../utils/pypi/sdktowheel.py _CPack_Packages/CYGWIN/ZIP/gmsh-git-Windows64-sdk/ win_amd64
- cp -R _CPack_Packages/Darwin _CPack_Packages/Darwin2
......
......@@ -24,7 +24,7 @@ plat_name = sys.argv[2]
setup_dir = os.path.dirname(__file__)
dist_info_dir = glob.glob(os.path.join(sdk_dir, 'lib', 'gmsh*.dist-info'))[0]
dist_info_dir = dist_info_dir.removeprefix(os.path.join(sdk_dir, 'lib', ''))
dist_info_dir = dist_info_dir[len(os.path.join(sdk_dir, 'lib', '')):]
match = re.match('(.*)-(.*)\.dist-info', dist_info_dir)
name = match.group(1)
version = match.group(2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment