Closed prjemian closed 5 years ago
quote: The conda skeleton
mkdir conda-recipes
cd conda-recipes
conda skeleton pypi apstools
created ./apstools/meta.yml
(bluesky) mintadmin@mint-vm:~/.../apstools/conda-recipe$ !2022
conda skeleton pypi apstools
Warning, the following versions were found for apstools
2019.128.0rc2
2019.128.0
2019.219.3
2019.220.0
2019.223.0
2019.225.0
2019.227.0
2019.228.0
Using 2019.228.0
Use --version to specify a different version.
Using url https://files.pythonhosted.org/packages/ec/33/b7780fb887d961fb5986a9c7cae250303b5fd721aa8715cc2a86f38519f6/apstools-2019.228.0.tar.gz (58 KB) for apstools.
Downloading apstools
PyPI URL: https://files.pythonhosted.org/packages/ec/33/b7780fb887d961fb5986a9c7cae250303b5fd721aa8715cc2a86f38519f6/apstools-2019.228.0.tar.gz
Unpacking apstools...
done
working in /tmp/tmp7q3dl_0aconda_skeleton_apstools-2019.228.0.tar.gz
Collecting package metadata: ...working... done
Solving environment: ...working... done
## Package Plan ##
environment location: /home/mintadmin/Apps/anaconda/conda-bld/skeleton_1551387632257/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place
The following NEW packages will be INSTALLED:
ca-certificates: 2019.1.23-0
certifi: 2018.11.29-py37_0
libedit: 3.1.20181209-hc058e9b_0
libffi: 3.2.1-hd88cf55_4
libgcc-ng: 8.2.0-hdf63c60_1
libstdcxx-ng: 8.2.0-hdf63c60_1
ncurses: 6.1-he6710b0_1
openssl: 1.1.1b-h7b6447c_0
pip: 19.0.3-py37_0
python: 3.7.2-h0371630_0
pyyaml: 3.13-py37h14c3975_0
readline: 7.0-h7b6447c_5
setuptools: 40.8.0-py37_0
sqlite: 3.26.0-h7b6447c_0
tk: 8.6.8-hbc83047_0
wheel: 0.33.1-py37_0
xz: 5.2.4-h14c3975_4
yaml: 0.1.7-had09818_2
zlib: 1.2.11-h7b6447c_3
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
WARNING: symlink_conda() is deprecated.
Applying patch: '/tmp/tmp7q3dl_0aconda_skeleton_apstools-2019.228.0.tar.gz/pypi-distutils.patch'
Trying to apply patch as-is
INFO:conda_build.source:Trying to apply patch as-is
patching file core.py
Hunk #1 succeeded at 167 with fuzz 2 (offset 1 line).
Writing recipe for apstools
--dirty flag and --keep-old-work not specified. Removing build/test folder after successful build/test.
INFO:conda_build.config:--dirty flag and --keep-old-work not specified. Removing build/test folder after successful build/test.
Whew! What a complicated path to follow. This page was also helpful: https://docs.conda.io/projects/conda-build/en/latest/source/concepts/channels.html?highlight=channel
conda skeleton pypi apstools
apstools/meta.yml
and add these to requirements
(both host and run):
- ophyd
- databroker
- bluesky
- pyRestTable
conda build apstools -c lightsource2-tag -c prjemian
This can be scripted -- the editing step is the only tricky part
upload to either aps-anl-dev or aps-anl-tag, such as:
anaconda upload -u aps-anl-dev /home/mintadmin/Apps/anaconda/conda-bld/linux-64/apstools-2019.228.0-py37_0.tar.bz2
The version number is built into the meta.yaml
file. This SO post shows a way to get the version number from setup.py
.
Also, the conda-build
uses py37 by default. We need perhaps py35, py36, and py37 versions. Also similar for pyRestTable (or drop that dependence altogether).
Specifically:
{% set data = load_setup_py_data() %}
package:
name: apstools
version: {{ data.get('version') }}
For now, using: conda build -c lightsource2-tag -c conda-forge -c prjemian conda-recipe 2>&1 | tee conda-recipe/conda-build.log
Still not building for py35 py36 py37 as seen in anaconda/conda-bld/linux-64/repodata.json
:
"apstools-2019.0228.0+1.gc89a6ca-py37_0.tar.bz2": {
"build": "py37_0",
"build_number": 0,
"depends": [
"bluesky",
"databroker",
"ophyd",
"pyresttable",
"python >=3.7,<3.8.0a0"
],
"license": "(c) 2017-2019, UChicago Argonne, LLC (see file for details)",
"license_family": "OTHER",
"md5": "b990c73fedf6612f8b8cfb06cd39c340",
"name": "apstools",
"sha256": "0a34aabefc525a87b0c7bcb046a71e6e23626b5670e1a44d12942a9fffd295fa",
"size": 82659,
"subdir": "linux-64",
"timestamp": 1551460548890,
"version": "2019.0228.0+1.gc89a6ca"
This advice maybe:
Not happy with this. Frustrated even. Despite many efforts, this failure to build peresists:
conda_build.exceptions.DependencyNeedsBuildingError: Unsatisfiable dependencies for platform linux-64: {'python=3.6', "python[version='>=3.7,<3.8.0a0']"}
Since my installed python is 3.6.6, don't know how to remove that >=3.7,<3.8.0a0
as shown above. Here is a sample of the recent build commands:
2009 conda build -c lightsource2-tag -c conda-forge -c prjemian
2010 conda build -c lightsource2-tag -c conda-forge -c prjemian conda-recipe
2014 date && conda build -c lightsource2-tag -c conda-forge -c prjemian conda-recipe && date 2>&1 | tee conda-recipe/conda-build.log
2024 touch conda-recipe/conda_build_config.yaml
2025 geany conda-recipe/conda_build_config.yaml
2026 conda build -c lightsource2-tag -c conda-forge -c prjemian conda-recipe 2>&1 | tee conda-recipe/conda-build.log
2028 conda build -c lightsource2-tag -c conda-forge -c prjemian conda-recipe 2>&1 | tee conda-recipe/conda-build.log
2029 conda build -c lightsource2-tag -c conda-forge -c prjemian conda-recipe --variants "{'python': ['3.6']}" 2>&1 | tee conda-recipe/conda-build.log
2030 conda-build --version
2031 conda update conda-build
2032 conda build -c lightsource2-tag -c conda-forge -c prjemian conda-recipe --variants "{'python': ['3.6']}" 2>&1 | tee conda-recipe/conda-build.log
2033 conda build -c lightsource2-tag -c conda-forge -c prjemian conda-recipe --python=3.6 2>&1 | tee conda-recipe/conda-build.log
2034 export CONDA_PY=3.6 && conda build -c lightsource2-tag -c conda-forge -c prjemian conda-recipe | tee conda-recipe/conda-build.log
2035 export CONDA_PY=36 && conda build -c lightsource2-tag -c conda-forge -c prjemian conda-recipe | tee conda-recipe/conda-build.log
taking too learn to get it right -- moving a conda build of apstools out of the coming milestone
noarch
Will build as noarch, based on success with pyRestTable and spec2nexus.
Using this command:
conda build -c lightsource2-tag -c conda-forge -c prjemian conda-recipe/ 2>&1 | tee conda-recipe/build_log.txt
Success! (thanks again @carterbox) Now upload and test. Here's the build log details:
``` No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.11 WARNING:conda_build.metadata:No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.11 Copying /home/mintadmin/Documents/eclipse/apstools to /home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/work Adding in variants from internal_defaults INFO:conda_build.variants:Adding in variants from internal_defaults Attempting to finalize metadata for apstools INFO:conda_build.metadata:Attempting to finalize metadata for apstools Collecting package metadata: ...working... done Solving environment: ...working... done Collecting package metadata: ...working... done Solving environment: ...working... done BUILD START: ['apstools-2019.0320.0+1.gd457a77.dirty-py_0.tar.bz2'] Collecting package metadata: ...working... done Solving environment: ...working... done ## Package Plan ## environment location: /home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place The following NEW packages will be INSTALLED: asn1crypto: 0.24.0-py37_1003 conda-forge asteval: 0.9.12-py37h5ca1d4c_0 lightsource2-tag astropy: 3.1.2-py37h14c3975_0 conda-forge attrs: 16.3.0-py37_1 lightsource2-tag backcall: 0.1.0-py_0 conda-forge bluesky: 1.5.2-py37_1 lightsource2-tag bokeh: 1.0.4-py37_1000 conda-forge boltons: 16.3.1-py37_0 lightsource2-tag bottleneck: 1.2.1-py37h3010b51_1001 conda-forge bzip2: 1.0.6-h14c3975_1002 conda-forge ca-certificates: 2019.3.9-hecc5488_0 conda-forge certifi: 2019.3.9-py37_0 conda-forge cffi: 1.12.2-py37hf0e25f4_1 conda-forge chardet: 3.0.4-py37_1003 conda-forge click: 7.0-py_0 conda-forge cloudpickle: 0.8.0-py_0 conda-forge cryptography: 2.6.1-py37h9d9f1b6_0 conda-forge cycler: 0.10.0-py_1 conda-forge cytoolz: 0.9.0.1-py37h14c3975_1001 conda-forge dask: 1.1.4-py_0 conda-forge dask-core: 1.1.4-py_0 conda-forge databroker: 0.12.2-py37_0 lightsource2-tag dbus: 1.13.2-h714fa37_1 decorator: 4.4.0-py_0 conda-forge dill: 0.2.9-py37_0 conda-forge distributed: 1.26.0-py37_1 conda-forge doct: 1.0.5-py37_0 lightsource2-tag epics-base: 3.14.12.6-3 lightsource2-tag event-model: 1.8.2-py37_2 lightsource2-tag expat: 2.2.5-hf484d3e_1002 conda-forge fast-histogram: 0.7-py37h3010b51_1000 conda-forge fontconfig: 2.13.1-he4413a7_1000 conda-forge freetype: 2.10.0-he983fc9_0 conda-forge gettext: 0.19.8.1-he099cd3_0 lightsource2-tag glib: 2.56.2-had28632_1001 conda-forge glue-core: 0.14.2-py37_0 conda-forge glue-vispy-viewers: 0.11-py_0 conda-forge glueviz: 0.14.0-0 conda-forge gst-plugins-base: 1.14.0-hbbd80ab_1 gstreamer: 1.14.0-hb453b48_1 h5py: 2.9.0-py37_1000 lightsource2-tag hdf5: 1.10.0-ha7b26dc_0 lightsource2-tag heapdict: 1.0.0-py37_1000 conda-forge historydict: 1.2.3-py_0 lightsource2-tag humanize: 0.5.1-py37_0 lightsource2-tag hypothesis: 3.6.1-py37_0 lightsource2-tag icu: 58.2-hf484d3e_1000 conda-forge idna: 2.8-py37_1000 conda-forge imageio: 2.5.0-py37_0 conda-forge ipykernel: 5.1.0-py37h24bf2e0_1002 conda-forge ipython: 7.3.0-py37h24bf2e0_0 conda-forge ipython_genutils: 0.2.0-py_1 conda-forge jedi: 0.13.3-py37_0 conda-forge jinja2: 2.10-py_1 conda-forge jpeg: 9c-h14c3975_1001 conda-forge jsonschema: 2.6.0-py37_1002 conda-forge jupyter_client: 5.2.4-py_3 conda-forge jupyter_core: 4.4.0-py_0 conda-forge kiwisolver: 1.0.1-py37h6bb024c_1002 conda-forge libblas: 3.8.0-4_openblas conda-forge libcblas: 3.8.0-4_openblas conda-forge libffi: 3.2.1-he1b5a44_1006 conda-forge libgcc-ng: 7.3.0-hdf63c60_0 conda-forge libgfortran-ng: 7.2.0-hdf63c60_3 conda-forge libiconv: 1.15-h516909a_1005 conda-forge liblapack: 3.8.0-4_openblas conda-forge libpng: 1.6.36-hbc83047_0 lightsource2-tag libsodium: 1.0.16-h14c3975_1001 conda-forge libstdcxx-ng: 7.3.0-hdf63c60_0 conda-forge libtiff: 4.0.10-h648cc4a_1001 conda-forge libuuid: 2.32.1-h14c3975_1000 conda-forge libxcb: 1.13-h14c3975_1002 conda-forge libxml2: 2.9.8-h143f9aa_1005 conda-forge lmfit: 0.9.9-pyh5ca1d4c_0 lightsource2-tag locket: 0.2.0-py_2 conda-forge markupsafe: 1.1.1-py37h14c3975_0 conda-forge matplotlib: 3.0.3-py37_0 lightsource2-tag matplotlib-base: 3.0.3-py37_0 lightsource2-tag mongoquery: 1.1.0-py37_0 lightsource2-tag mpl-scatter-density: 0.5-py_0 conda-forge msgpack-python: 0.6.1-py37h6bb024c_0 conda-forge nbformat: 4.4.0-py_1 conda-forge ncurses: 6.1-hf484d3e_1002 conda-forge networkx: 2.2-py_1 conda-forge numpy: 1.16.2-py37h8b7e671_1 conda-forge olefile: 0.46-py_0 conda-forge openblas: 0.3.5-h9ac9557_1001 conda-forge openssl: 1.1.1b-h14c3975_1 conda-forge ophyd: 1.3.2-py37_0 lightsource2-tag packaging: 19.0-py_0 conda-forge pandas: 0.24.2-py37hf484d3e_0 conda-forge parso: 0.3.4-py_0 conda-forge partd: 0.3.9-py_0 conda-forge pcre: 8.43-he6710b0_0 pexpect: 4.6.0-py37_1000 conda-forge pickleshare: 0.7.5-py37_1000 conda-forge pillow: 5.4.1-py37h00a061d_1000 conda-forge pims: 0.4.1-py_1 lightsource2-tag pip: 19.0.3-py37_0 conda-forge plotly: 3.7.1-py_0 conda-forge prettytable: 0.7.2-py37_0 lightsource2-tag prompt_toolkit: 2.0.9-py_0 conda-forge psutil: 5.6.1-py37h14c3975_0 conda-forge pthread-stubs: 0.4-h14c3975_1001 conda-forge ptyprocess: 0.6.0-py37_1000 conda-forge py: 1.8.0-py_0 conda-forge pycparser: 2.19-py37_1 conda-forge pyepics: 3.3.0-py37h5ca1d4c_1 lightsource2-tag pygments: 2.3.1-py_0 conda-forge pymongo: 3.6.1-py37_0 lightsource2-tag pympler: 0.5-py37_0 lightsource2-tag pyopengl: 3.1.3b2-py_1 conda-forge pyopenssl: 19.0.0-py37_0 conda-forge pyparsing: 2.3.1-py_0 conda-forge pyqt: 5.6.0-py37h13b7fb3_1008 conda-forge pyresttable: 2019.0321.0-py_0 local pysocks: 1.6.8-py37_1002 conda-forge pytest: 3.2.2-py_0 conda-forge pytest-arraydiff: 0.3-py_0 conda-forge pytest-astropy: 0.5.0-py_0 conda-forge pytest-doctestplus: 0.3.0-py_0 conda-forge pytest-openfiles: 0.3.1-py_0 conda-forge pytest-remotedata: 0.3.1-py_0 conda-forge python: 3.7.2-h381d211_0 conda-forge python-dateutil: 2.8.0-py_0 conda-forge pytz: 2018.9-py_0 conda-forge pywavelets: 1.0.2-py37h3010b51_0 conda-forge pyyaml: 5.1-py37h14c3975_0 conda-forge pyzmq: 18.0.1-py37h0e1adb2_0 conda-forge qt: 5.6.3-h8bf5577_3 qtconsole: 4.4.3-py_0 conda-forge qtpy: 1.7.0-pyh8a2030e_0 conda-forge readline: 7.0-hf8c457e_1001 conda-forge requests: 2.21.0-py37_1000 conda-forge retrying: 1.3.3-py_2 conda-forge scikit-image: 0.14.2-py37hf484d3e_1 conda-forge scipy: 1.2.1-py37h09a28d5_1 conda-forge setuptools: 40.8.0-py37_0 conda-forge sip: 4.18.1-py37hf484d3e_1000 conda-forge six: 1.12.0-py37_1000 conda-forge slicerator: 0.9.8-py37h5ca1d4c_0 lightsource2-tag sortedcontainers: 2.1.0-py_0 conda-forge sqlite: 3.26.0-h67949de_1001 conda-forge super_state_machine: 1.0-py37_0 lightsource2-tag tblib: 1.3.2-py_1 conda-forge tifffile: 0.11.1-py37_0 lightsource2-tag tk: 8.6.9-h84994c4_1000 conda-forge toolz: 0.9.0-py_1 conda-forge tornado: 6.0.1-py37h14c3975_0 conda-forge tqdm: 4.31.1-py_0 conda-forge traitlets: 4.3.2-py37_1000 conda-forge tzlocal: 1.1.2-py37_2 lightsource2-tag ujson: 1.35-py37h14c3975_1001 conda-forge urllib3: 1.24.1-py37_1000 conda-forge wcwidth: 0.1.7-py_1 conda-forge wheel: 0.33.1-py37_0 conda-forge xlrd: 1.2.0-py_0 conda-forge xorg-libxau: 1.0.9-h14c3975_0 conda-forge xorg-libxdmcp: 1.1.3-h516909a_0 conda-forge xz: 5.2.4-h14c3975_1001 conda-forge yaml: 0.1.7-h14c3975_1001 conda-forge zeromq: 4.2.5-hf484d3e_1006 conda-forge zict: 0.1.4-py_0 conda-forge zlib: 1.2.11-h14c3975_1004 conda-forge zope: 1.0-py37_1 zope.interface: 4.6.0-py37h14c3975_1000 conda-forge Preparing transaction: ...working... done Verifying transaction: ...working... done Executing transaction: ...working... done Collecting package metadata: ...working... done Solving environment: ...working... done /home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/lib/python3.7/site-packages/setuptools/dist.py:475: UserWarning: Normalizing '2019.0320.0+1.gd457a77.dirty' to '2019.320.0+1.gd457a77.dirty' normalized_version, source tree in: /home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/work export PREFIX=/home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place export BUILD_PREFIX=/home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/_build_env export SRC_DIR=/home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/work running install running bdist_egg running egg_info writing apstools.egg-info/PKG-INFO writing dependency_links to apstools.egg-info/dependency_links.txt writing entry points to apstools.egg-info/entry_points.txt writing top-level names to apstools.egg-info/top_level.txt reading manifest file 'apstools.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'apstools.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py UPDATING build/lib/apstools/_version.py set build/lib/apstools/_version.py to '2019.0320.0+1.gd457a77.dirty' creating build/bdist.linux-x86_64/egg creating build/bdist.linux-x86_64/egg/apstools copying build/lib/apstools/__init__.py -> build/bdist.linux-x86_64/egg/apstools copying build/lib/apstools/_version.py -> build/bdist.linux-x86_64/egg/apstools copying build/lib/apstools/devices.py -> build/bdist.linux-x86_64/egg/apstools copying build/lib/apstools/examples.py -> build/bdist.linux-x86_64/egg/apstools copying build/lib/apstools/run_snapshot_gui.py -> build/bdist.linux-x86_64/egg/apstools copying build/lib/apstools/suspenders.py -> build/bdist.linux-x86_64/egg/apstools copying build/lib/apstools/utils.py -> build/bdist.linux-x86_64/egg/apstools copying build/lib/apstools/snapshot.py -> build/bdist.linux-x86_64/egg/apstools copying build/lib/apstools/signals.py -> build/bdist.linux-x86_64/egg/apstools copying build/lib/apstools/plans.py -> build/bdist.linux-x86_64/egg/apstools creating build/bdist.linux-x86_64/egg/apstools/synApps_ophyd copying build/lib/apstools/synApps_ophyd/__init__.py -> build/bdist.linux-x86_64/egg/apstools/synApps_ophyd copying build/lib/apstools/synApps_ophyd/busy.py -> build/bdist.linux-x86_64/egg/apstools/synApps_ophyd copying build/lib/apstools/synApps_ophyd/swait.py -> build/bdist.linux-x86_64/egg/apstools/synApps_ophyd copying build/lib/apstools/synApps_ophyd/sscan.py -> build/bdist.linux-x86_64/egg/apstools/synApps_ophyd copying build/lib/apstools/synApps_ophyd/save_data.py -> build/bdist.linux-x86_64/egg/apstools/synApps_ophyd copying build/lib/apstools/filewriters.py -> build/bdist.linux-x86_64/egg/apstools copying build/lib/apstools/textreadonly.py -> build/bdist.linux-x86_64/egg/apstools copying build/lib/apstools/run_snapshot.py -> build/bdist.linux-x86_64/egg/apstools copying build/lib/apstools/callbacks.py -> build/bdist.linux-x86_64/egg/apstools byte-compiling build/bdist.linux-x86_64/egg/apstools/__init__.py to __init__.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/apstools/_version.py to _version.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/apstools/devices.py to devices.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/apstools/examples.py to examples.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/apstools/run_snapshot_gui.py to run_snapshot_gui.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/apstools/suspenders.py to suspenders.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/apstools/utils.py to utils.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/apstools/snapshot.py to snapshot.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/apstools/signals.py to signals.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/apstools/plans.py to plans.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/apstools/synApps_ophyd/__init__.py to __init__.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/apstools/synApps_ophyd/busy.py to busy.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/apstools/synApps_ophyd/swait.py to swait.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/apstools/synApps_ophyd/sscan.py to sscan.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/apstools/synApps_ophyd/save_data.py to save_data.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/apstools/filewriters.py to filewriters.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/apstools/textreadonly.py to textreadonly.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/apstools/run_snapshot.py to run_snapshot.cpython-37.pyc byte-compiling build/bdist.linux-x86_64/egg/apstools/callbacks.py to callbacks.cpython-37.pyc creating build/bdist.linux-x86_64/egg/EGG-INFO copying apstools.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying apstools.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying apstools.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying apstools.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying apstools.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO copying apstools.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO creating 'dist/apstools-2019.320.0+1.gd457a77.dirty-py3.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing apstools-2019.320.0+1.gd457a77.dirty-py3.7.egg creating $PREFIX/lib/python3.7/site-packages/apstools-2019.320.0+1.gd457a77.dirty-py3.7.egg Extracting apstools-2019.320.0+1.gd457a77.dirty-py3.7.egg to $PREFIX/lib/python3.7/site-packages Adding apstools 2019.320.0+1.gd457a77.dirty to easy-install.pth file Installing apstools_plan_catalog script to $PREFIX/bin Installing bluesky_snapshot script to $PREFIX/bin Installing bluesky_snapshot_viewer script to $PREFIX/bin Installed $PREFIX/lib/python3.7/site-packages/apstools-2019.320.0+1.gd457a77.dirty-py3.7.egg Processing dependencies for apstools==2019.320.0+1.gd457a77.dirty Finished processing dependencies for apstools==2019.320.0+1.gd457a77.dirty Resource usage statistics from building apstools: Process count: 1 CPU time: Sys=0:00:00.0, User=0:00:00.0 Memory: 4.0K Disk usage: 15.2K Time elapsed: 0:00:02.3 Packaging apstools WARNING: symlink_conda() is deprecated. WARNING: symlink_conda() is deprecated. INFO:conda_build.build:Packaging apstools Packaging apstools-2019.0320.0+1.gd457a77.dirty-py_0 INFO:conda_build.build:Packaging apstools-2019.0320.0+1.gd457a77.dirty-py_0 nm: /home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/mkspecs/macx-g++/Info.plist.lib: File format not recognized nm: /home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/mkspecs/macx-g++-32/Info.plist.lib: File format not recognized nm: /home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/mkspecs/macx-clang/Info.plist.lib: File format not recognized nm: /home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/mkspecs/macx-g++42/Info.plist.lib: File format not recognized nm: /home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/mkspecs/macx-ios-clang/Info.plist.lib: File format not recognized nm: /home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/mkspecs/macx-icc/Info.plist.lib: File format not recognized nm: /home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/mkspecs/macx-clang-32/Info.plist.lib: File format not recognized nm: /home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/mkspecs/macx-g++40/Info.plist.lib: File format not recognized nm: /home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/mkspecs/macx-llvm/Info.plist.lib: File format not recognized nm: dynamic_annotations.o: no symbols found egg dir: /home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/lib/python3.7/site-packages/apstools-2019.320.0+1.gd457a77.dirty-py3.7.egg number of files: 28 WARNING (apstools): dso library package conda-forge::python-3.7.2-h381d211_0 in requirements/run but it is not used (i.e. it is overdepending or perhaps statically linked? If that is what you want then add it to `build/ignore_run_exports`) Fixing permissions Packaged license file. Compressing to /tmp/tmpeimlz3hl/apstools-2019.0320.0+1.gd457a77.dirty-py_0.tar.bz2 Package verification results: ----------------------------- TEST START: /home/mintadmin/Apps/anaconda/conda-bld/noarch/apstools-2019.0320.0+1.gd457a77.dirty-py_0.tar.bz2 Adding in variants from /tmp/tmpj86lb9g7/info/recipe/conda_build_config.yaml /tmp/tmpeimlz3hl/apstools-2019.0320.0+1.gd457a77.dirty-py_0.tar.bz2: C1105 Found invalid version number in info/index.json INFO:conda_build.variants:Adding in variants from /tmp/tmpj86lb9g7/info/recipe/conda_build_config.yaml Renaming work directory, /home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/work to /home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/work_moved_apstools-2019.0320.0+1.gd457a77.dirty-py_0_noarch Collecting package metadata: ...working... done Solving environment: ...working... done ## Package Plan ## environment location: /home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl The following NEW packages will be INSTALLED: apstools: 2019.0320.0+1.gd457a77.dirty-py_0 local asn1crypto: 0.24.0-py37_1003 conda-forge asteval: 0.9.12-py37h5ca1d4c_0 lightsource2-tag astropy: 3.1.2-py37h14c3975_0 conda-forge attrs: 16.3.0-py37_1 lightsource2-tag backcall: 0.1.0-py_0 conda-forge bluesky: 1.5.2-py37_1 lightsource2-tag bokeh: 1.0.4-py37_1000 conda-forge boltons: 16.3.1-py37_0 lightsource2-tag bottleneck: 1.2.1-py37h3010b51_1001 conda-forge bzip2: 1.0.6-h14c3975_1002 conda-forge ca-certificates: 2019.3.9-hecc5488_0 conda-forge certifi: 2019.3.9-py37_0 conda-forge cffi: 1.12.2-py37hf0e25f4_1 conda-forge chardet: 3.0.4-py37_1003 conda-forge click: 7.0-py_0 conda-forge cloudpickle: 0.8.0-py_0 conda-forge cryptography: 2.6.1-py37h9d9f1b6_0 conda-forge cycler: 0.10.0-py_1 conda-forge cytoolz: 0.9.0.1-py37h14c3975_1001 conda-forge dask: 1.1.4-py_0 conda-forge dask-core: 1.1.4-py_0 conda-forge databroker: 0.12.2-py37_0 lightsource2-tag dbus: 1.13.2-h714fa37_1 decorator: 4.4.0-py_0 conda-forge dill: 0.2.9-py37_0 conda-forge distributed: 1.26.0-py37_1 conda-forge doct: 1.0.5-py37_0 lightsource2-tag epics-base: 3.14.12.6-3 lightsource2-tag event-model: 1.8.2-py37_2 lightsource2-tag expat: 2.2.5-hf484d3e_1002 conda-forge fast-histogram: 0.7-py37h3010b51_1000 conda-forge fontconfig: 2.13.1-he4413a7_1000 conda-forge freetype: 2.10.0-he983fc9_0 conda-forge gettext: 0.19.8.1-he099cd3_0 lightsource2-tag glib: 2.56.2-had28632_1001 conda-forge glue-core: 0.14.2-py37_0 conda-forge glue-vispy-viewers: 0.11-py_0 conda-forge glueviz: 0.14.0-0 conda-forge gst-plugins-base: 1.14.0-hbbd80ab_1 gstreamer: 1.14.0-hb453b48_1 h5py: 2.9.0-py37_1000 lightsource2-tag hdf5: 1.10.0-ha7b26dc_0 lightsource2-tag heapdict: 1.0.0-py37_1000 conda-forge historydict: 1.2.3-py_0 lightsource2-tag humanize: 0.5.1-py37_0 lightsource2-tag hypothesis: 3.6.1-py37_0 lightsource2-tag icu: 58.2-hf484d3e_1000 conda-forge idna: 2.8-py37_1000 conda-forge imageio: 2.5.0-py37_0 conda-forge ipykernel: 5.1.0-py37h24bf2e0_1002 conda-forge ipython: 7.3.0-py37h24bf2e0_0 conda-forge ipython_genutils: 0.2.0-py_1 conda-forge jedi: 0.13.3-py37_0 conda-forge jinja2: 2.10-py_1 conda-forge jpeg: 9c-h14c3975_1001 conda-forge jsonschema: 2.6.0-py37_1002 conda-forge jupyter_client: 5.2.4-py_3 conda-forge jupyter_core: 4.4.0-py_0 conda-forge kiwisolver: 1.0.1-py37h6bb024c_1002 conda-forge libblas: 3.8.0-4_openblas conda-forge libcblas: 3.8.0-4_openblas conda-forge libffi: 3.2.1-he1b5a44_1006 conda-forge libgcc-ng: 7.3.0-hdf63c60_0 conda-forge libgfortran-ng: 7.2.0-hdf63c60_3 conda-forge libiconv: 1.15-h516909a_1005 conda-forge liblapack: 3.8.0-4_openblas conda-forge libpng: 1.6.36-hbc83047_0 lightsource2-tag libsodium: 1.0.16-h14c3975_1001 conda-forge libstdcxx-ng: 7.3.0-hdf63c60_0 conda-forge libtiff: 4.0.10-h648cc4a_1001 conda-forge libuuid: 2.32.1-h14c3975_1000 conda-forge libxcb: 1.13-h14c3975_1002 conda-forge libxml2: 2.9.8-h143f9aa_1005 conda-forge lmfit: 0.9.9-pyh5ca1d4c_0 lightsource2-tag locket: 0.2.0-py_2 conda-forge markupsafe: 1.1.1-py37h14c3975_0 conda-forge matplotlib: 3.0.3-py37_0 lightsource2-tag matplotlib-base: 3.0.3-py37_0 lightsource2-tag mongoquery: 1.1.0-py37_0 lightsource2-tag mpl-scatter-density: 0.5-py_0 conda-forge msgpack-python: 0.6.1-py37h6bb024c_0 conda-forge nbformat: 4.4.0-py_1 conda-forge ncurses: 6.1-hf484d3e_1002 conda-forge networkx: 2.2-py_1 conda-forge numpy: 1.16.2-py37h8b7e671_1 conda-forge olefile: 0.46-py_0 conda-forge openblas: 0.3.5-h9ac9557_1001 conda-forge openssl: 1.1.1b-h14c3975_1 conda-forge ophyd: 1.3.2-py37_0 lightsource2-tag packaging: 19.0-py_0 conda-forge pandas: 0.24.2-py37hf484d3e_0 conda-forge parso: 0.3.4-py_0 conda-forge partd: 0.3.9-py_0 conda-forge pcre: 8.43-he6710b0_0 pexpect: 4.6.0-py37_1000 conda-forge pickleshare: 0.7.5-py37_1000 conda-forge pillow: 5.4.1-py37h00a061d_1000 conda-forge pims: 0.4.1-py_1 lightsource2-tag pip: 19.0.3-py37_0 conda-forge plotly: 3.7.1-py_0 conda-forge prettytable: 0.7.2-py37_0 lightsource2-tag prompt_toolkit: 2.0.9-py_0 conda-forge psutil: 5.6.1-py37h14c3975_0 conda-forge pthread-stubs: 0.4-h14c3975_1001 conda-forge ptyprocess: 0.6.0-py37_1000 conda-forge py: 1.8.0-py_0 conda-forge pycparser: 2.19-py37_1 conda-forge pyepics: 3.3.0-py37h5ca1d4c_1 lightsource2-tag pygments: 2.3.1-py_0 conda-forge pymongo: 3.6.1-py37_0 lightsource2-tag pympler: 0.5-py37_0 lightsource2-tag pyopengl: 3.1.3b2-py_1 conda-forge pyopenssl: 19.0.0-py37_0 conda-forge pyparsing: 2.3.1-py_0 conda-forge pyqt: 5.6.0-py37h13b7fb3_1008 conda-forge pyresttable: 2019.0321.0-py_0 local pysocks: 1.6.8-py37_1002 conda-forge pytest: 3.2.2-py_0 conda-forge pytest-arraydiff: 0.3-py_0 conda-forge pytest-astropy: 0.5.0-py_0 conda-forge pytest-doctestplus: 0.3.0-py_0 conda-forge pytest-openfiles: 0.3.1-py_0 conda-forge pytest-remotedata: 0.3.1-py_0 conda-forge python: 3.7.2-h381d211_0 conda-forge python-dateutil: 2.8.0-py_0 conda-forge pytz: 2018.9-py_0 conda-forge pywavelets: 1.0.2-py37h3010b51_0 conda-forge pyyaml: 5.1-py37h14c3975_0 conda-forge pyzmq: 18.0.1-py37h0e1adb2_0 conda-forge qt: 5.6.3-h8bf5577_3 qtconsole: 4.4.3-py_0 conda-forge qtpy: 1.7.0-pyh8a2030e_0 conda-forge readline: 7.0-hf8c457e_1001 conda-forge requests: 2.21.0-py37_1000 conda-forge retrying: 1.3.3-py_2 conda-forge scikit-image: 0.14.2-py37hf484d3e_1 conda-forge scipy: 1.2.1-py37h09a28d5_1 conda-forge setuptools: 40.8.0-py37_0 conda-forge sip: 4.18.1-py37hf484d3e_1000 conda-forge six: 1.12.0-py37_1000 conda-forge slicerator: 0.9.8-py37h5ca1d4c_0 lightsource2-tag sortedcontainers: 2.1.0-py_0 conda-forge sqlite: 3.26.0-h67949de_1001 conda-forge super_state_machine: 1.0-py37_0 lightsource2-tag tblib: 1.3.2-py_1 conda-forge tifffile: 0.11.1-py37_0 lightsource2-tag tk: 8.6.9-h84994c4_1000 conda-forge toolz: 0.9.0-py_1 conda-forge tornado: 6.0.1-py37h14c3975_0 conda-forge tqdm: 4.31.1-py_0 conda-forge traitlets: 4.3.2-py37_1000 conda-forge tzlocal: 1.1.2-py37_2 lightsource2-tag ujson: 1.35-py37h14c3975_1001 conda-forge urllib3: 1.24.1-py37_1000 conda-forge wcwidth: 0.1.7-py_1 conda-forge wheel: 0.33.1-py37_0 conda-forge xlrd: 1.2.0-py_0 conda-forge xorg-libxau: 1.0.9-h14c3975_0 conda-forge xorg-libxdmcp: 1.1.3-h516909a_0 conda-forge xz: 5.2.4-h14c3975_1001 conda-forge yaml: 0.1.7-h14c3975_1001 conda-forge zeromq: 4.2.5-hf484d3e_1006 conda-forge zict: 0.1.4-py_0 conda-forge zlib: 1.2.11-h14c3975_1004 conda-forge zope: 1.0-py37_1 zope.interface: 4.6.0-py37h14c3975_1000 conda-forge Preparing transaction: ...working... done Verifying transaction: ...working... done Executing transaction: ...working... done + python -c 'import apstools;' + bluesky_snapshot --help + exit 0 WARNING: symlink_conda() is deprecated. export PREFIX=/home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl export SRC_DIR=/home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/test_tmp import: 'apstools' import: 'apstools.synApps_ophyd' import: 'apstools' import: 'apstools.synApps_ophyd' usage: bluesky_snapshot [-h] [-b BROKER_CONFIG] [-m METADATA_SPEC] [-r] [-v] EPICS_PV [EPICS_PV ...] record a snapshot of some PVs using Bluesky, ophyd, and databroker version=2019.0320.0+1.gd457a77.dirty positional arguments: EPICS_PV EPICS PV name optional arguments: -h, --help show this help message and exit -b BROKER_CONFIG YAML configuration for databroker, default: mongodb_config -m METADATA_SPEC, --metadata METADATA_SPEC additional metadata, enclose in quotes, such as -m "purpose=just tuned, situation=routine" -r, --report suppress snapshot report -v, --version show program's version number and exit Resource usage statistics from testing apstools: Process count: 3 CPU time: Sys=0:00:00.2, User=0:00:02.1 Memory: 167.4M Disk usage: 24B Time elapsed: 0:00:06.2 TEST END: /home/mintadmin/Apps/anaconda/conda-bld/noarch/apstools-2019.0320.0+1.gd457a77.dirty-py_0.tar.bz2 Renaming work directory, /home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/work to /home/mintadmin/Apps/anaconda/conda-bld/apstools_1553202327648/work_moved_apstools-2019.0320.0+1.gd457a77.dirty-py_0_linux-64_main_build_loop # Automatic uploading is disabled # If you want to upload package(s) to anaconda.org later, type: anaconda upload /home/mintadmin/Apps/anaconda/conda-bld/noarch/apstools-2019.0320.0+1.gd457a77.dirty-py_0.tar.bz2 # To have conda build upload to anaconda.org automatically, use # $ conda config --set anaconda_upload yes anaconda_upload is not set. Not uploading wheels: [] #################################################################################### Resource usage summary: Total time: 0:18:27.4 CPU usage: sys=0:00:00.2, user=0:00:02.1 Maximum memory usage observed: 167.4M Total disk usage observed (not including envs): 15.3K ```
got to make new tag, that one's dirty: apstools-2019.0320.0+1.gd457a77.dirty-py_0
Here's that (new) upload command (to our aps-anl-tag channel):
anaconda upload -u aps-anl-dev /home/mintadmin/Apps/anaconda/conda-bld/noarch/apstools-2019.0321.1-py_0.tar.bz2
declaring victory
The existing
conda.sh
fails during the test phase when building (without a recipe) where bluesky et al. have been installed via pip.Advice is to use a recipe to build a conda package. There are advantages.
Here is the console session log: