Skip to content

Commit 7904d0d

Browse files
Fix install script
Signed-off-by: Jean-Christophe Morin <[email protected]>
1 parent 68b546e commit 7904d0d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

install.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,23 +156,23 @@ def install(dest_dir, print_welcome=False):
156156
install_rez_from_source(dest_dir)
157157

158158
# patch the rez binaries
159-
patch_rez_binaries(dest_dir)
159+
# patch_rez_binaries(dest_dir)
160160

161161
# copy completion scripts into virtualenv
162162
completion_path = copy_completion_scripts(dest_dir)
163163

164164
# mark virtualenv as production rez install. Do not remove - rez uses this!
165165
virtualenv_bin_dir = get_virtualenv_bin_dir(dest_dir)
166166
dest_bin_dir = os.path.join(virtualenv_bin_dir, "rez")
167-
validation_file = os.path.join(dest_bin_dir, ".rez_production_install")
168-
with open(validation_file, 'w') as f:
169-
f.write(_rez_version)
167+
# validation_file = os.path.join(dest_bin_dir, ".rez_production_install")
168+
# with open(validation_file, 'w') as f:
169+
# f.write(_rez_version)
170170

171171
# done
172172
if print_welcome:
173173
print()
174174
print("SUCCESS!")
175-
rez_exe = os.path.realpath(os.path.join(dest_bin_dir, "rez"))
175+
rez_exe = os.path.realpath(os.path.join(dest_bin_dir))
176176
print("Rez executable installed to: %s" % rez_exe)
177177

178178
try:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def run(self):
120120

121121
prod_install_path = os.path.join(tmpdir, ".rez_production_install")
122122
with open(prod_install_path, "w") as fd:
123-
fd.write("# Production install installed with pip")
123+
fd.write(_rez_version)
124124

125125
scripts.append(prod_install_path)
126126

0 commit comments

Comments
 (0)