Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.admin
Commits
7a596533
Commit
7a596533
authored
7 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Add version generator
parent
5036cfa9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
conda/generate-package-yaml.sh
+73
-0
73 additions, 0 deletions
conda/generate-package-yaml.sh
with
73 additions
and
0 deletions
conda/generate-package-yaml.sh
0 → 100755
+
73
−
0
View file @
7a596533
#!/bin/bash
# Andre Anjos <andre.dos.anjos@gmail.com>
# Fri Jan 12 09:36:32 2018
# Get latest versions of packages in anaconda 4.4+
# If a package name is specified on the input, just for that package
# Otherwise, the default list of packages is printed
CONDA
=
/opt/miniconda/bin/conda
PACKAGES
=()
if
[
$#
-gt
0
]
;
then
if
[
$1
==
'-h'
]
;
then
echo
"usage:
$0
#runs through all supported packages"
echo
"usage:
$0
<package> #just queries this package"
echo
"example:
$0
numpy"
else
PACKAGES+
=(
"
$@
"
)
fi
else
PACKAGES+
=(
'curl'
)
PACKAGES+
=(
'cython'
)
PACKAGES+
=(
'cytoolz'
)
PACKAGES+
=(
'dask'
)
PACKAGES+
=(
'freetype'
)
PACKAGES+
=(
'hdf5'
)
PACKAGES+
=(
'imagesize'
)
PACKAGES+
=(
'ipython'
)
PACKAGES+
=(
'jpeg'
)
PACKAGES+
=(
'libpng'
)
PACKAGES+
=(
'libtiff'
)
PACKAGES+
=(
'matplotlib'
)
PACKAGES+
=(
'mkl'
)
PACKAGES+
=(
'nose'
)
PACKAGES+
=(
'numba'
)
PACKAGES+
=(
'numexpr'
)
PACKAGES+
=(
'numpy'
)
PACKAGES+
=(
'pandas'
)
PACKAGES+
=(
'pillow'
)
PACKAGES+
=(
'pip'
)
PACKAGES+
=(
'scikit-image'
)
PACKAGES+
=(
'scikit-learn'
)
PACKAGES+
=(
'scipy'
)
PACKAGES+
=(
'setuptools'
)
PACKAGES+
=(
'six'
)
PACKAGES+
=(
'sphinx'
)
PACKAGES+
=(
'sqlalchemy'
)
PACKAGES+
=(
'toolz'
)
PACKAGES+
=(
'boost'
)
PACKAGES+
=(
'cmake'
)
PACKAGES+
=(
'coverage'
)
PACKAGES+
=(
'ffmpeg'
)
PACKAGES+
=(
'opencv'
)
PACKAGES+
=(
'pkg-config'
)
PACKAGES+
=(
'protobuf'
)
PACKAGES+
=(
'sqlite'
)
PACKAGES+
=(
'tensorflow'
)
PACKAGES+
=(
'tqdm'
)
PACKAGES+
=(
'virtualenv'
)
PACKAGES+
=(
'xz'
)
PACKAGES+
=(
'zlib'
)
fi
if
[
!
-x
${
CONDA
}
]
;
then
echo
"Cannot find conda binary at
\`
${
CONDA
}
'"
echo
"Update this script to point to a conda installation"
exit
1
fi
for
p
in
"
${
PACKAGES
[@]
}
"
;
do
/opt/miniconda/bin/conda search
$p
|
grep
-e
'h[a-f0-9]\{7\}_[0-9]\{1,3\}'
|
tail
-n
1 |
awk
'{ print $1, "\b\:\n \-", $2, " #", $3 }'
;
done
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment