Skip to content

Commit e01fa89

Browse files
committed
fix .bat files created in conda construct post-link step; comments in MakeBat file
1 parent 36ceb2a commit e01fa89

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

‎install/GSAS2main/post-link.bat‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ if errorlevel 1 exit 1
1515
del /s git.tgz >> %logfile%
1616
REM
1717
REM create shortcut to start GSAS-II =======================================
18-
echo REM Commands to run GSAS-II load/update process > "%PREFIX%\G2_start.bat"
19-
echo call %PREFIX%\Scripts\activate >> "%PREFIX%\G2_start.bat"
18+
echo REM Commands to start GSAS-II > "%PREFIX%\G2_start.bat"
19+
echo call %PREFIX%\condabin\conda.bat >> "%PREFIX%\G2_start.bat"
20+
echo call conda activate %PREFIX% >> "%PREFIX%\G2_start.bat"
2021
echo python %PREFIX%\GSAS-II\GSASII\G2.py >> "%PREFIX%\G2_start.bat"
2122
REM create bootstrap batch file ================================================
2223
echo REM Commands to run GSAS-II load/update process > "%PREFIX%\G2_bootstrap.bat"
24+
echo call %PREFIX%\condabin\conda.bat >> "%PREFIX%\G2_bootstrap.bat"
25+
echo call conda activate %PREFIX% >> "%PREFIX%\G2_bootstrap.bat"
2326
echo call %PREFIX%\Scripts\activate >> "%PREFIX%\G2_bootstrap.bat"
27+
echo curl -L -o %PREFIX%\gitstrap.py https://github.com/AdvancedPhotonSource/GSAS-II-buildtools/raw/main/install/gitstrap.py >> "%PREFIX%\G2_bootstrap.bat
28+
echo python %PREFIX%\gitstrap.py --reset >> "%PREFIX%\G2_bootstrap.bat
29+
echo python %PREFIX%\gitstrap.py --nodownload >> "%PREFIX%\G2_bootstrap.bat
2430
echo post-link.bat now done >> %logfile%

‎install/gitstrap.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from __future__ import division, print_function
55
import os, stat, sys, platform, subprocess, datetime
66

7-
version = "gitstrap.py from February 17, 2025"
7+
version = "gitstrap.py from January 27, 2026"
88
g2URL = "https://github.com/AdvancedPhotonSource/GSAS-II.git"
99
scriptpath = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))
1010
# This installs GSAS-II files in a directory called GSAS-II which
@@ -234,8 +234,6 @@
234234
--reset Removes any locally-changed GSAS-II files and updates to
235235
the latest GSAS-II version. Useful when GSAS-II will not
236236
start. --noshortcut is set when --reset is used.
237-
This option needs more testing.
238-
Contact Brian if it seems to fail.
239237
240238
--help shows this message
241239

0 commit comments

Comments
 (0)