blob: 94f7ac8460646ce2d4fc2a5d84de70c470eae4a9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
import std.stdio;
import std.array;
import std.format;
import std.file;
import std.typecons;
import conda;
import merge;
int main(string[] args) {
Conda conda = new Conda();
conda.channels = [
"http://ssb.stsci.edu/astroconda",
"defaults",
"http://ssb.stsci.edu/astroconda-dev"
];
conda.install_prefix = "/tmp/miniconda";
conda.installer_version = "4.5.12";
conda.installer_variant = "3";
if (!conda.installer()) {
writeln("Installation failed.");
return 1;
}
conda.initialize();
env_combine(conda,
"delivery",
"https://raw.githubusercontent.com/astroconda/astroconda-releases/master/hstdp/2019.3/dev/hstdp-2019.3-linux-py36.02.txt",
"test.dm");
conda.run("info");
conda.run("list");
/*
conda.activate("base");
conda.run("info");
conda.sh("python --version");
conda.sh("python -c 'import sys; print(sys.path)'");
*/
/*
conda.sh("git clone https://github.com/spacetelescope/tweakwcs");
auto project = "tweakwcs";
chdir(project);
conda.sh("pip install stsci.distutils numpy");
conda.sh("pip install -e '.[test]'");
conda.sh("pytest -v");
chdir("..");
*/
return 0;
}
|