No valid recipes found for input: ['.'] at api.py", line 205

Hi,
I would like to build MLPerf Loadgen in a Conda environment. Normally, according to the manual, the commands are:

cd mlperf/inference/loadgen
CFLAGS="-std=c++14 -O3" python -m pip install --user .

Now, I would like to use conda because at that point I have an activated conda env. I have tried the following set of commands but as you see it fails with an error:

$ conda create --name menv
(menv) $ conda activate menv
(menv) $ conda install conda-build
(menv) $ CFLAGS="-std=c++14 -O3" conda build .
Traceback (most recent call last):
  File "/home/mahmood/.conda/envs/menv/bin/conda-build", line 11, in <module>
    sys.exit(execute())
             ^^^^^^^^^
  File "/home/mahmood/.conda/envs/menv/lib/python3.12/site-packages/conda_build/cli/main_build.py", line 589, in execute
    api.build(
  File "/home/mahmood/.conda/envs/menv/lib/python3.12/site-packages/conda_build/api.py", line 205, in build
    raise ValueError(
ValueError: No valid recipes found for input: ['.']

Here are some information about versions.

(menv) $ python --version
Python 3.12.5
(menv) $ conda --version
conda 4.12.0
(menv) $ gcc -dumpversion
11.3.0

Any thought on how to fix that?

To create a conda package, you need to create a conda-build recipe file named meta.yaml. See docs. You might be interested in generating the recipe with grayskull to get started, though.

1 Like