Discussion:
[conda] Missing entry points for custom conda package in constructor
Brad Buran
2018-10-03 20:39:42 UTC
Permalink
I've been testing the constructor for creating some installers to simplify
the process for end-users. I'm using https://github.com/bburan/abr as my
test-case. I am able to successfully build a conda package using the
attached meta.yaml file. I then create a new environment with this package:

conda create --name abr-test --use-local abr

Then, I activate this environment:

conda activate abr-test

Once activated, I have access to the two entry points (which show up in
miniconda3/envs/abr-test/bin):

abr_gui
abr_loop

Now, the next step is to create an installer that installs a self-contained
version of Python on other computers. Using the attached construct.yaml
file, I am able to successfully build the installer and run it. However,
abr_gui and abr_loop are missing from ~/abr-analysis/bin (where the
installer saved the files)! If I CD to ~/abr-analysis/bin and start the
python interpreter, e.g.:

# in terminal
cd ~/abr-analysis/bin
./python

# inside python
from abr.app import cmd_main
cmd_main.main()

This successfully opens the GUI. So, given that my conda package works just
fine and creates an abr_gui and abr_loop entry-points when creating a new
conda environment, why are they missing from the bin folder in the
installer? Am I missing something obvious?

Thank you!
Brad
--
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/89617bc6-7f6b-4321-84a3-f3974b617ec6%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Nehal J Wani
2018-10-07 11:24:08 UTC
Permalink
I wasn't able to reproduce this on linux-64. Are you using macOS? Please
file an issue at https://github.com/conda/constructor/ and also mention the
version of constructor you are using.


Cheers!

Nehal J Wani
Post by Brad Buran
I've been testing the constructor for creating some installers to simplify
the process for end-users. I'm using https://github.com/bburan/abr as my
test-case. I am able to successfully build a conda package using the
conda create --name abr-test --use-local abr
conda activate abr-test
Once activated, I have access to the two entry points (which show up in
abr_gui
abr_loop
Now, the next step is to create an installer that installs a
self-contained version of Python on other computers. Using the attached
construct.yaml file, I am able to successfully build the installer and run
it. However, abr_gui and abr_loop are missing from ~/abr-analysis/bin
(where the installer saved the files)! If I CD to ~/abr-analysis/bin and
# in terminal
cd ~/abr-analysis/bin
./python
# inside python
from abr.app import cmd_main
cmd_main.main()
This successfully opens the GUI. So, given that my conda package works
just fine and creates an abr_gui and abr_loop entry-points when creating a
new conda environment, why are they missing from the bin folder in the
installer? Am I missing something obvious?
Thank you!
Brad
--
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/89617bc6-7f6b-4321-84a3-f3974b617ec6%40continuum.io
<https://groups.google.com/a/continuum.io/d/msgid/conda/89617bc6-7f6b-4321-84a3-f3974b617ec6%40continuum.io?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
--
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/CAG6NSrnW8xr9%2BTPq-_rjDEZMoOFLw4Z%2B6p-jy_1GU_-Ox2Gihg%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Loading...