I'm trying to build a conda package with conda build .
. I'm getting quite far, but after the tests, I get this output:
Renaming work directory, C:\ProgramData\Miniconda3\envs\p37\conda-bld\<package-name>_1596716574942\work to
C:\ProgramData\Miniconda3\envs\p37\conda-bld\<package-name>_1596716574942\work_moved_<package-name>-1.1.1-py38_0_win-64
Traceback (most recent call last):
File "C:\ProgramData\Miniconda3\envs\p37\lib\shutil.py", line 566, in move
os.rename(src, real_dst)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process:
'C:\\ProgramData\\Miniconda3\\envs\\p37\\conda-bld\\<package-name>_1596716574942\\work' ->
'C:\\ProgramData\\Miniconda3\\envs\\p37\\conda-bld\\<package-name>_1596716574942\\work_moved_<package-name>-1.1.1-py38_0_win-64'
But how can that be when conda build itself has only just created the entire directory? I just rebooted to be on the safe side, but that did not help. Neither did running conda build in an administrator prompt.
And why does conda build build for python 3.8? The meta.yaml specifies python>=3.6
and the conda environment I'm in has Python 3.7 installed - python --version
on the command line gives 3.7.6
. Specifying conda build . --python=3.7
does not change the package name - it is still ...py38...