Skip to content
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

Create cudaq python wheel #2256

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
adding a proper tag for the wheel file
  • Loading branch information
sacpis committed Oct 6, 2024
commit 402f1dfb0893bce246a60576fecb6aace4a495cc
10 changes: 8 additions & 2 deletions cudaq-1.0.0/cuda_autodetect.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import ctypes
from typing import List
import pkg_resources
import distutils.util

try:
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
Expand Down Expand Up @@ -202,7 +203,12 @@ def infer_best_package(package_name: str,

class bdist_wheel(_bdist_wheel):

# Adopted from https://discuss.python.org/t/wheel-caching-and-non-deterministic-builds/7687
def get_tag(self):
platform = distutils.util.get_platform().replace('-', '_')
python_tag = 'cp39'
abi_tag = 'cp39'
plat_tag = platform
return python_tag, abi_tag, plat_tag

def finalize_options(self):
super().finalize_options()
Expand All @@ -212,7 +218,7 @@ def finalize_options(self):
if PACKAGE_RESOLUTION is None:
assert False, "something went wrong"
build_tag = PACKAGE_RESOLUTION.split("-")[-1]

# per PEP 427, build tag must start with a digit
self.build_number = f"0_{build_tag}"
else:
Expand Down
Binary file not shown.
Binary file modified cudaq-1.0.0/dist/cudaq-1.0.0.tar.gz
Binary file not shown.
Loading