зеркало из https://github.com/microsoft/DeepSpeed.git
fix: swapping order of parameters in create_dir_symlink method. (#5465)
Order of parameters in create_dir_symlink method looks wrong. Because this we get the error "PermissionError: [WinError 5] Denied access: '.\\deepspeed\\ops\\csrc'" when install deepspeed >= 0.4.0 on Windows enviroment. Please check this out @eltonzheng and @jeffra. --------- Co-authored-by: Olatunji Ruwase <olruwase@microsoft.com> Co-authored-by: Logan Adams <114770087+loadams@users.noreply.github.com>
This commit is contained in:
Родитель
4c15ad9f8d
Коммит
059bb2085c
6
setup.py
6
setup.py
|
@ -219,9 +219,9 @@ def create_dir_symlink(src, dest):
|
|||
if sys.platform == "win32":
|
||||
# This creates a symbolic links on Windows.
|
||||
# It needs Administrator privilege to create symlinks on Windows.
|
||||
create_dir_symlink('..\\..\\csrc', '.\\deepspeed\\ops\\csrc')
|
||||
create_dir_symlink('..\\..\\op_builder', '.\\deepspeed\\ops\\op_builder')
|
||||
create_dir_symlink('..\\accelerator', '.\\deepspeed\\accelerator')
|
||||
create_dir_symlink('.\\deepspeed\\ops\\csrc', '..\\..\\csrc')
|
||||
create_dir_symlink('.\\deepspeed\\ops\\op_builder', '..\\..\\op_builder')
|
||||
create_dir_symlink('.\\deepspeed\\accelerator', '..\\accelerator')
|
||||
egg_info.manifest_maker.template = 'MANIFEST_win.in'
|
||||
|
||||
# Parse the DeepSpeed version string from version.txt.
|
||||
|
|
Загрузка…
Ссылка в новой задаче