Discussion:
[conda] How to build package offline
Deepak Jon
2018-02-12 09:32:06 UTC
Permalink
I have file structure as below

Package
'
'--pack1
'
'--pack2
'
'--pack3

I wanted to make conda package of Package How must i proceed to achieve this???
Please guide me !!!!

Thanks in Advance
--
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/0c2029ee-34d1-4463-b041-1d32091a2c8d%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Chris Barker
2018-02-12 20:14:42 UTC
Permalink
you use conda-build the same as everything else, but for the source spec in
meta.yaml, you use this:

https://conda.io/docs/user-guide/tasks/build-packages/define-metadata.html#source-from-a-local-path

-CHB
Post by Deepak Jon
I have file structure as below
Package
'
'--pack1
'
'--pack2
'
'--pack3
I wanted to make conda package of Package How must i proceed to achieve this???
Please guide me !!!!
Thanks in Advance
--
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/0c2029ee-34d1-4463-b041-
1d32091a2c8d%40continuum.io.
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/CALGmxEJ1_s-oYd-_GUvH6-F8ocA0WFdAMnqNa--zuduDR_J7bw%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Deepak Jon
2018-02-13 12:43:51 UTC
Permalink
I could able to build the .tar.bz2 file but inside that there is only info folder i must be lib folder also due to this my conda is not working properly....

Can you suggest me how should fix this
--
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/26cfa83a-6154-4bed-985e-0439dac47ab4%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Chris Barker - NOAA Federal
2018-02-13 15:48:12 UTC
Permalink
We can’t help if we don’t know what you tried :-)

Post your recipe, and maybe we can see the problem.

Also — check the output when conda-build runs — looks like nothing
actually got built, so conda-build had nothing to package up.

-CHB

Sent from my iPhone
Post by Deepak Jon
I could able to build the .tar.bz2 file but inside that there is only info folder i must be lib folder also due to this my conda is not working properly....
Can you suggest me how should fix this
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
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/26cfa83a-6154-4bed-985e-0439dac47ab4%40continuum.io.
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/CALGmxE%2BHtAyjV6ThxwH-pC-vpwTxT5txYbZUS62Myjgp1rNEgw%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Deepak Jon
2018-02-14 06:27:27 UTC
Permalink
my meta.yaml
-------------------

{% set data = load_setup_py_data() %}
package:
name: example
version: "1.0.1"

source:
path: ../example

requirements:
build:
- python
- setuptools

test:
- python

about:
home: http://example.com
licence: BSD

bld.bat

-------

python setup.py install --single-version-externally-managed --record=record.txt

if errorlevel 1 exit 1

i have created custom channel in my local drive, and i have a project
locally now i have to make a conda package how should i proceed for this,
as i am getting below errors:

i have given local channel name in .condarc and nothing is there in
channel it is just empty

Copying C:\Code\src\example\example to C:\Users\deepak\conda-bld\example
cs_1518589100492\work
Attempting to finalize metadata for example
INFO:conda_build.metadata:Attempting to finalize metadata for example

Leaving build/test directories:
Work: C:\Users\deepak\conda-bld\work
Test: C:\Users\deepak\conda-bld\test_tmp
Leaving build/test environments:
Test: source activate C:\Users\deepak\conda-bld\_test_env
Build: source activate C:\Users\deepak\conda-bld\_h_env


Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\conda_build\environ.py", line
680, in get_install_actions
actions = install_actions(prefix, index, specs, force=True)
File "C:\ProgramData\Anaconda3\lib\site-packages\conda\plan.py", line 461, in
install_actions
update_deps, pinned)
File "C:\ProgramData\Anaconda3\lib\site-packages\conda\plan.py", line 631, in
get_actions_for_dists
pkgs = r.install(specs, installed, update_deps=update_deps)
File "C:\ProgramData\Anaconda3\lib\site-packages\conda\resolve.py", line 813,
in install
pkgs = self.solve(specs, returnall=returnall)
File "C:\ProgramData\Anaconda3\lib\site-packages\conda\resolve.py", line 853,
in solve
reduced_index = self.get_reduced_index(specs)
File "C:\ProgramData\Anaconda3\lib\site-packages\conda\resolve.py", line 374,
in get_reduced_index
specs, features = self.verify_specs(specs)
File "C:\ProgramData\Anaconda3\lib\site-packages\conda\resolve.py", line 300,
in verify_specs
raise ResolvePackageNotFound(bad_deps)
conda.exceptions.ResolvePackageNotFound:
- setuptools
- certifi
- setuptools
- python >=2.7,<2.8.0a0
- setuptools
- wincertstore
- python 3.6.*

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\Scripts\conda-build-script.py", line 10, in <mo
dule>
sys.exit(main())
File "C:\ProgramData\Anaconda3\lib\site-packages\conda_build\cli\main_build.py
", line 388, in main
execute(sys.argv[1:])
File "C:\ProgramData\Anaconda3\lib\site-packages\conda_build\cli\main_build.py
", line 379, in execute
verify=args.verify)
File "C:\ProgramData\Anaconda3\lib\site-packages\conda_build\api.py", line 185
, in build
need_source_download=need_source_download, config=config, variants=variants)

File "C:\ProgramData\Anaconda3\lib\site-packages\conda_build\build.py", line 1
776, in build_tree
notest=notest,
File "C:\ProgramData\Anaconda3\lib\site-packages\conda_build\build.py", line 8
82, in build
output_metas = expand_outputs([(m, need_source_download, need_reparse_in_env
)])
File "C:\ProgramData\Anaconda3\lib\site-packages\conda_build\render.py", line
548, in expand_outputs
for (output_dict, m) in _m.get_output_metadata_set(permit_unsatisfiable_vari
ants=False):
File "C:\ProgramData\Anaconda3\lib\site-packages\conda_build\metadata.py", lin
e 1764, in get_output_metadata_set
permit_unsatisfiable_variants=permit_unsatisfiable_variants)
File "C:\ProgramData\Anaconda3\lib\site-packages\conda_build\metadata.py", lin
e 640, in finalize_outputs_pass
fm = finalize_metadata(om, permit_unsatisfiable_variants=permit_unsatisfiabl
e_variants)
File "C:\ProgramData\Anaconda3\lib\site-packages\conda_build\render.py", line
290, in finalize_metadata
permit_unsatisfiable_variants=permit_unsatisfiable_variants)
File "C:\ProgramData\Anaconda3\lib\site-packages\conda_build\render.py", line
113, in get_env_dependencies
channel_urls=tuple(m.config.channel_urls))
File "C:\ProgramData\Anaconda3\lib\site-packages\conda_build\environ.py", line
682, in get_install_actions
raise DependencyNeedsBuildingError(exc, subdir=subdir)
conda_build.exceptions.DependencyNeedsBuildingError: Unsatisfiable dependencies
for platform win-64: ['setuptools', 'certifi', 'setuptools', 'python >=2.7,<2.8.
0a0', 'setuptools', 'wincertstore', 'python 3.6.*']



On Tuesday, February 13, 2018 at 9:18:16 PM UTC+5:30, Chris Barker - NOAA
We can’t help if we don’t know what you tried :-)
Post your recipe, and maybe we can see the problem.
Also — check the output when conda-build runs — looks like nothing
actually got built, so conda-build had nothing to package up.
-CHB
Sent from my iPhone
Post by Deepak Jon
I could able to build the .tar.bz2 file but inside that there is only
info folder i must be lib folder also due to this my conda is not working
properly....
Post by Deepak Jon
Can you suggest me how should fix this
--
You received this message because you are subscribed to the Google
Groups "conda - Public" group.
Post by Deepak Jon
To unsubscribe from this group and stop receiving emails from it, send
Visit this group at
https://groups.google.com/a/continuum.io/group/conda/.
Post by Deepak Jon
To view this discussion on the web visit
https://groups.google.com/a/continuum.io/d/msgid/conda/26cfa83a-6154-4bed-985e-0439dac47ab4%40continuum.io.
Post by Deepak Jon
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/2ae0c8cd-b877-46ab-a221-c1c68fbd68f8%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Loading...