Discussion:
[conda] conda build: No files or script found for output
Michael Molnar
2018-06-27 16:21:37 UTC
Permalink
I am trying to build a conda package that uses a c++ program from GitHub.
The conda build will download and install the program, but the files from
the installation are not included in the .tar.bz2 file.

Here is my meta.yaml:
package:
name: racer
version: "1.1"

source:
git_url: https://github.com/lucian-ilie/RACER.git


Here is my build.sh
#!/bin/bash
make

Any help would be greatly appreciated.

-Mike
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/2ec076e3-796a-40bf-986a-d6d274a417f7%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Lori Burns
2018-06-27 17:30:46 UTC
Permalink
That program is probably so simple it doesn't have an install step, so
you'll have to copy the built executable into $PREFIX/bin
(https://github.com/psi4/psi4meta/blob/master/conda-recipes/dftd3/build.sh#L19).
Post by Michael Molnar
I am trying to build a conda package that uses a c++ program from GitHub.
The conda build will download and install the program, but the files from
the installation are not included in the .tar.bz2 file.
name: racer
version: "1.1"
git_url: https://github.com/lucian-ilie/RACER.git
Here is my build.sh
#!/bin/bash
make
Any help would be greatly appreciated.
-Mike
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/f97ed0ab-6163-4ea5-b386-7e2f128005af%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Michael Molnar
2018-06-27 18:10:18 UTC
Permalink
When I add anything after the make command (even a blank line), then I get
an error saying that the command make was not found. Here is the output
when I add an blank line after make in build.sh:

source tree in:
/work/ilie/data/mmolnar2/anaconda2/conda-bld/racer_1530122925392/work
: command not
foundlnar2/anaconda2/conda-bld/racer_1530122925392/work/conda_build.sh:
line 55: make
Traceback (most recent call last):
File "/work/ilie/data/mmolnar2/anaconda2/bin/conda-build", line 11, in
<module>
sys.exit(main())
File
"/work/ilie/data/mmolnar2/anaconda2/lib/python2.7/site-packages/conda_build/cli/main_build.py",
line 420, in main
execute(sys.argv[1:])
File
"/work/ilie/data/mmolnar2/anaconda2/lib/python2.7/site-packages/conda_build/cli/main_build.py",
line 411, in execute
verify=args.verify)
File
"/work/ilie/data/mmolnar2/anaconda2/lib/python2.7/site-packages/conda_build/api.py",
line 200, in build
notest=notest, need_source_download=need_source_download,
variants=variants)
File
"/work/ilie/data/mmolnar2/anaconda2/lib/python2.7/site-packages/conda_build/build.py",
line 2177, in build_tree
notest=notest,
File
"/work/ilie/data/mmolnar2/anaconda2/lib/python2.7/site-packages/conda_build/build.py",
line 1417, in build
utils.check_call_env(cmd, env=env, cwd=src_dir, stats=build_stats)
File
"/work/ilie/data/mmolnar2/anaconda2/lib/python2.7/site-packages/conda_build/utils.py",
line 310, in check_call_env
return _func_defaulting_env_to_os_environ('call', *popenargs, **kwargs)
File
"/work/ilie/data/mmolnar2/anaconda2/lib/python2.7/site-packages/conda_build/utils.py",
line 290, in _func_defaulting_env_to_os_environ
raise subprocess.CalledProcessError(proc.returncode, _args)
subprocess.CalledProcessError: Command '['/bin/bash', '-e',
'/work/ilie/data/mmolnar2/anaconda2/conda-bld/racer_1530122925392/work/conda_build.sh']'
returned non-zero exit status 127
Post by Lori Burns
That program is probably so simple it doesn't have an install step, so
you'll have to copy the built executable into $PREFIX/bin (
https://github.com/psi4/psi4meta/blob/master/conda-recipes/dftd3/build.sh#L19
).
Post by Michael Molnar
I am trying to build a conda package that uses a c++ program from
GitHub. The conda build will download and install the program, but the
files from the installation are not included in the .tar.bz2 file.
name: racer
version: "1.1"
git_url: https://github.com/lucian-ilie/RACER.git
Here is my build.sh
#!/bin/bash
make
Any help would be greatly appreciated.
-Mike
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/2f7a189a-737b-4576-bb06-f9867aafb661%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Lori Burns
2018-06-27 18:20:05 UTC
Permalink
Strange. You don't need the shebang. I'd start adding `ls`, `pwd`, `which
make`, etc. into your build.sh to figure out what's going on. Seems
incredible that you wouldn't have `make`.
Post by Michael Molnar
I am trying to build a conda package that uses a c++ program from GitHub.
The conda build will download and install the program, but the files from
the installation are not included in the .tar.bz2 file.
name: racer
version: "1.1"
git_url: https://github.com/lucian-ilie/RACER.git
Here is my build.sh
#!/bin/bash
make
Any help would be greatly appreciated.
-Mike
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/aca54378-4aea-4823-b42d-e63776035841%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Michael Molnar
2018-06-27 18:26:15 UTC
Permalink
The odd thing is that it works if there is nothing after make. It only
fails when I add anything after make.
Post by Lori Burns
Strange. You don't need the shebang. I'd start adding `ls`, `pwd`, `which
make`, etc. into your build.sh to figure out what's going on. Seems
incredible that you wouldn't have `make`.
Post by Michael Molnar
I am trying to build a conda package that uses a c++ program from
GitHub. The conda build will download and install the program, but the
files from the installation are not included in the .tar.bz2 file.
name: racer
version: "1.1"
git_url: https://github.com/lucian-ilie/RACER.git
Here is my build.sh
#!/bin/bash
make
Any help would be greatly appreciated.
-Mike
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/bf7ef226-9895-4578-b15c-3e21eb1cdf8d%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Lori Burns
2018-06-27 18:36:50 UTC
Permalink
How do you know it works? Maybe skip the makefile and just have the below
in your build.sh plus the copy to prefix line. Actually, your meta.yaml
needs a `requirements/build` section with `- {{ compiler('cxx') }}` too.

${GXX} -O3 -Wall -fomit-frame-pointer -fopenmp Racer.cpp -o Racer
Post by Michael Molnar
I am trying to build a conda package that uses a c++ program from GitHub.
The conda build will download and install the program, but the files from
the installation are not included in the .tar.bz2 file.
name: racer
version: "1.1"
git_url: https://github.com/lucian-ilie/RACER.git
Here is my build.sh
#!/bin/bash
make
Any help would be greatly appreciated.
-Mike
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/05c573ff-300a-4979-893a-9d921e0679fa%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Loading...