Skip to content

Commit 340fc57

Browse files
authored
Change path of smdebug_rules binary to smdebug (aws#414)
* Revert "Update version for alpha (aws#411)" This reverts commit 0ec15fa1e520876b5d3eeaf1a0c8d98e1f90b58e. * Change paths for smdebug_rules->smdebug so as to not confuse with 1p rules binary * Update paths
1 parent 5ff5341 commit 340fc57

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

bin/build_binaries.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"replace the latest binary in the S3 location. Note that"
2222
"this also requires you to pass --upload",
2323
)
24+
parser.add_argument("--s3-prefix", default="s3://tornasole-bugbash-1113/binaries")
2425
args = parser.parse_args()
2526
exec(open("smdebug/_version.py").read())
2627

@@ -30,8 +31,10 @@
3031
for b in BINARIES:
3132
if b == "rules":
3233
env_var = "ONLY_RULES"
34+
path = "smdebug"
3335
else:
3436
env_var = "SMDEBUG_WITH_" + b.upper()
37+
path = f"smdebug_{b}"
3538
env = dict(os.environ)
3639
env[env_var] = "1"
3740
subprocess.check_call([sys.executable, "setup.py", "bdist_wheel", "--universal"], env=env)
@@ -42,7 +45,7 @@
4245
"s3",
4346
"cp",
4447
"dist/smdebug-{}-py2.py3-none-any.whl".format(VERSION),
45-
"s3://tornasole-bugbash-1113/binaries/smdebug_{}/".format(b),
48+
os.path.join(args.s3_prefix, path, ""),
4649
]
4750
)
4851

@@ -53,10 +56,8 @@
5356
"aws",
5457
"s3",
5558
"cp",
56-
"s3://tornasole-bugbash-1113/binaries/smdebug_{}/smdebug-{}-py2.py3-none-any.whl".format(
57-
b, VERSION
58-
),
59-
"s3://tornasole-bugbash-1113/binaries/smdebug_{}/latest/".format(b),
59+
os.path.join(args.s3_prefix, path, f"smdebug-{VERSION}-py2.py3-none-any.whl"),
60+
os.path.join(args.s3_prefix, path, "latest", ""),
6061
]
6162
)
6263
# remove other versions
@@ -67,8 +68,8 @@
6768
"rm",
6869
"--recursive",
6970
"--exclude",
70-
"smdebug-{}*".format(VERSION),
71-
"s3://tornasole-bugbash-1113/binaries/smdebug_{}/latest/".format(b),
71+
f"smdebug-{VERSION}*",
72+
os.path.join(args.s3_prefix, path, "latest"),
7273
]
7374
)
7475
subprocess.check_call(["rm", "-rf", "dist", "build", "*.egg-info", ".eggs"])

smdebug/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.5a"
1+
__version__ = "0.4.1"

0 commit comments

Comments
 (0)