Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
mmdetection3d
Commits
bdb30325
Unverified
Commit
bdb30325
authored
Dec 06, 2021
by
Wenhao Wu
Committed by
GitHub
Dec 06, 2021
Browse files
[Fix] Catch symlink failure on Windows (#1096)
parent
940e4294
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
setup.py
setup.py
+6
-1
No files found.
setup.py
View file @
bdb30325
from
setuptools
import
find_packages
,
setup
from
setuptools
import
find_packages
,
setup
import
os
import
os
import
platform
import
shutil
import
shutil
import
sys
import
sys
import
torch
import
torch
...
@@ -150,6 +151,10 @@ def add_mim_extention():
...
@@ -150,6 +151,10 @@ def add_mim_extention():
# parse installment mode
# parse installment mode
if
'develop'
in
sys
.
argv
:
if
'develop'
in
sys
.
argv
:
# installed by `pip install -e .`
# installed by `pip install -e .`
if
platform
.
system
()
==
'Windows'
:
# set `copy` mode here since symlink fails on Windows.
mode
=
'copy'
else
:
mode
=
'symlink'
mode
=
'symlink'
elif
'sdist'
in
sys
.
argv
or
'bdist_wheel'
in
sys
.
argv
:
elif
'sdist'
in
sys
.
argv
or
'bdist_wheel'
in
sys
.
argv
:
# installed by `pip install .`
# installed by `pip install .`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment