I have a conda
recipe for a custom package that depends on a pip
package in a private index.
Looking at the documentation, and the example it links to, it would seem that it should be possible to install the pip
package from the bld.bat
file in my recipe.
I have tried both of the following:
xcopy /e "%SRC_DIR%\src" "%SP_DIR%\%PKG_NAME%\"
if errorlevel 1 exit 1
pip install some_package --extra-index-url "https://private_index.com/pip/simple/"
if errorlevel 1 exit 1
xcopy /e "%SRC_DIR%\src" "%SP_DIR%\%PKG_NAME%\"
if errorlevel 1 exit 1
set PIP_EXTRA_INDEX_URL="https://private_index.com/pip/simple/"
pip install some_package
if errorlevel 1 exit 1
which give me this error:
ERROR: Could not find a version that satisfies the requirement some_package (from versions: none)
ERROR: No matching distribution found for some_package
But when I do pip install some_package --extra-index-url "https://private_index.com/pip/simple/"
in a shell, all works fine.
What am I doing wrong?
N.B. There is a valid build for some_package
for the python version I'm building against.