Skip to content

Commit

Permalink
debug build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Hamel committed Jul 15, 2024
1 parent b57394a commit 53349f0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions package.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@
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")
assert len(sdists) == 1, "Found %d sdist packages, expected 1" % len(sdists)

assert os.path.exists("pbspro"), os.getcwd()
assert os.path.exists("pbspro/dist"), os.getcwd()
print("cwd =", os.getcwd())
import subprocess
print(subprocess.check_output(["tree"]).decode())
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)
dest = os.path.join("libs", fname)
Expand Down

0 comments on commit 53349f0

Please sign in to comment.