Skip to content

Commit d7083f2

Browse files
committed
Add code to remove the symlink before creating
* It will prompts "Cannot create a file when that file already exists." if the symlink already exist. Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 937e740 commit d7083f2

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

configure.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ if %ERRORLEVEL% neq 0 (
156156
%CFG_REQUIREMENTS%
157157

158158
@rem # Create junction to bin to have the same directory between linux and windows
159+
if exist "%CFG_ROOT_DIR%\%VIRTUALENV_DIR%\bin" (
160+
rmdir /s /q "%CFG_ROOT_DIR%\%VIRTUALENV_DIR%\bin"
161+
)
159162
mklink /J %CFG_ROOT_DIR%\%VIRTUALENV_DIR%\bin %CFG_ROOT_DIR%\%VIRTUALENV_DIR%\Scripts
160163

161164
if %ERRORLEVEL% neq 0 (

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
attrs==21.2.0
22
boolean.py==3.8
3+
certifi
34
click==8.0.1
45
colorama==0.4.4
56
importlib-metadata==4.8.1

setup.cfg

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ include_package_data = true
4444
zip_safe = false
4545
install_requires =
4646
attrs
47-
jinja2
48-
click
49-
saneyaml
5047
boolean.py >= 3.5, < 4.0
48+
certifi
49+
click
50+
jinja2
5151
license_expression >= 0.94
5252
openpyxl
5353
packageurl_python >= 0.9.0
54-
openpyxl
54+
saneyaml
5555

5656
setup_requires = setuptools_scm[toml] >= 4
5757
python_requires = >=3.6.*, <4

0 commit comments

Comments
 (0)