Hello, I am creating my first python package that I would like to publish on both pypi and conda-forge. I am able to sucessfully build, install and run the package a pip package from a local repository but I am and able to even build the conda package.
When building the conda package I am using the command:
conda build .
from the package directory. Conda build starts the build process then quits with the following error:
%SRC_DIR%>call “C:\ProgramData\anaconda3\condabin\conda.bat” activate “%PREFIX%”
- Creating isolated environment: venv+pip…
- Installing packages in isolated environment:
- build
- setuptools
< ERROR: Could not find a version that satisfies the requirement setuptools
(from versions: none)
I believe that these 2 packages are being pulled in because I have this listed in my pyproject.toml
[build-system]
requires = [
“setuptools”,
“build”
]build-backend = “setuptools.build_meta”
I have both python-build and setuptools listed as build requirements in the meta.yml file so I would expect that both setuptools and python-build would be available in the build environment. Can some one please tell me what I am doing wrong. This is my first python package so I am probably doing something wrong.
I have the full source posted on github.