0

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.

Griffin
  • 13,184
  • 4
  • 29
  • 43
  • your command line command and batch file commands do not match. please clarify. – Gerhard Nov 08 '21 at 18:19
  • @Gerhard I'm not sure what you're referring to. The cmd command, at the end, matches the problematic line in the first example batch file - the rest of the lines are to give context as to what is going on in my `bld.bat` as someone would have surely asked. – Griffin Nov 08 '21 at 18:22
  • @Gerhard looks like you're my only hope thus far. Any ideas? – Griffin Nov 09 '21 at 13:15
  • Any update on this? I see the same error when trying to build conda packages using a private pypi index (Gitlab). In my case I'm on Linux (Ubuntu 18.04) not Windows. Doing the same but with any other pip-package and without the extra-index-url works. – Jens L Nov 25 '22 at 08:55

0 Answers0