[Repronim-trd3] Best way to determine conda architecture?
Robert Buccigrossi
robert.buccigrossi at tcg.com
Sun Mar 4 16:28:46 PST 2018
Dear Niceman Gurus,
To address #195, I'd like to find the conda architecture. Of course, the
trick is how :)
*Option 1: Getting the platform from "conda info -a"*
The command "conda info -a --json" does report the "platform" (like
"linux-64") so
*Option 2: Getting the architecture from conda's conda-meta JSON entry*
I can see the architecture in the JSON file for the "conda" package in
the "conda-meta" directory (specifically in my recent install I see that
conda-meta/conda-4.4.10-py27_0.json has "arch": "x86_64") . So I know that
I can use:
conda list --json -f conda
to get the "dist_name" (which on my system is "conda-4.4.10-py27_0"), and
then use that to construct the json filename and read it from conda-meta to
get the arch.
Is there any preference? Left to my own devices, I'd grab the platform
with Option 1...
Butch
--
*Robert Buccigrossi, Ph.D. PMP PSM-1,* CTO
*TCG, Inc. - Positively Distinct* - CMMI-DEV Level 3 - CMMI-SVC Level 3 -
ISO 9001:2015
202-742-8473 | robert.buccigrossi at tcg.com | www.tcg.com
<https://www.facebook.com/TCG-32241785903>
<https://twitter.com/TCGnews> [image:
Linkedin] <https://www.linkedin.com/in/robert-buccigrossi-345ab>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.nitrc.org/pipermail/repronim-trd3/attachments/20180305/0ddb1bdd/attachment.html>
More information about the Repronim-trd3
mailing list