Discussion:
[conda] noarch and setuptools entry points
Chris Barker
2018-03-29 00:05:49 UTC
Permalink
All,

I"m trying to build a conda package fro hieroglyph -- a sphinx extension
that makes slides.

It's pure python, and working fin on my OS_X box.

But I put it up in conda-forge staged-recipes:

https://github.com/conda-forge/staged-recipes/pull/5498

and it's built fine on Circle, but Appveyor has failed with:

...
Successfully built hieroglyph
Installing collected packages: hieroglyph
Successfully installed hieroglyph-1.0.0
You are using pip version 9.0.1, however version 9.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip'
command.
INFO conda_build.build:bundle_conda(863): Packaging hieroglyph-1.0.0-py_0
number of files: 171
Fixing permissions
[noarch_python] Error: Binary library or executable found:
Scripts\hieroglyph-quickstart.exe
Command exited with code 1

it looks like it's getting confused by the noarch and the executable
created by setuptools entry_points.

Is there no way to do noarch with any scripts in the package?

-CHB




Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

***@noaa.gov
--
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/CALGmxE%2BWxRSh0L3k7g-R%2Be-mtKWT2eF6VC-b7w-Y1%3Dr%3Dh3oBbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Chris Barker
2018-03-30 20:28:12 UTC
Permalink
Try adding the entry point to meta.yaml.
https://conda.io/docs/user-guide/tasks/build-packages/
define-metadata.html#build-section
I realize it’s duplication of information over what’s in setup.py. I’m
guessing it’ll take care of the problem for you though.
thanks, I may give it a try.

Or wait for conda-forge to use conda-build3 in staged recipes -- I"ve been
told that will take care of it.

-CHB
Sent from my iPhone
All,
I"m trying to build a conda package fro hieroglyph -- a sphinx extension
that makes slides.
It's pure python, and working fin on my OS_X box.
https://github.com/conda-forge/staged-recipes/pull/5498
...
Successfully built hieroglyph
Installing collected packages: hieroglyph
Successfully installed hieroglyph-1.0.0
You are using pip version 9.0.1, however version 9.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade
pip' command.
INFO conda_build.build:bundle_conda(863): Packaging hieroglyph-1.0.0-py_0
number of files: 171
Fixing permissions
Scripts\hieroglyph-quickstart.exe
Command exited with code 1
it looks like it's getting confused by the noarch and the executable
created by setuptools entry_points.
Is there no way to do noarch with any scripts in the package?
-CHB
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE
<https://maps.google.com/?q=7600+Sand+Point+Way+NE&entry=gmail&source=g>
(206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
--
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
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/CALGmxE%2BWxRSh0L3k7g-R%2Be-
mtKWT2eF6VC-b7w-Y1%3Dr%3Dh3oBbQ%40mail.gmail.com
<https://groups.google.com/a/continuum.io/d/msgid/conda/CALGmxE%2BWxRSh0L3k7g-R%2Be-mtKWT2eF6VC-b7w-Y1%3Dr%3Dh3oBbQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

***@noaa.gov
--
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/CALGmxE%2BGmO77gx9_M8jcOUbZ9ETF1tTu5KqTtfBhbYV4Arcs-g%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Loading...