Skip to content

Commit

Permalink
Merge pull request #70 from Azure/ryhamel/underscore-sdist
Browse files Browse the repository at this point in the history
allow underscore or dash for sdist file
  • Loading branch information
ryanhamel authored Jul 15, 2024
2 parents b57394a + 9deb504 commit f599a62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
def build_sdist() -> str:
cmd = [sys.executable, "setup.py", "sdist"]
check_call(cmd, cwd=os.path.abspath("pbspro"))
sdists = glob.glob("pbspro/dist/cyclecloud-pbspro-*.tar.gz")
# HACK: cyclecloud_pbspro and cyclecloud-pbspro are both valid names, depending on
# which distools is used to build this.
sdists = glob.glob("pbspro/dist/cyclecloud*pbspro-*.tar.gz")
assert len(sdists) == 1, "Found %d sdist packages, expected 1" % len(sdists)
path = sdists[0]
fname = os.path.basename(path)
Expand Down

0 comments on commit f599a62

Please sign in to comment.