diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-05-20 15:56:07 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-05-20 15:56:07 -0400 |
commit | dee2bb287820edd24ca38c678a45295426cb2b28 (patch) | |
tree | 95d687773acd5e166aa9436f51781f74c7365351 /source/app.d | |
download | dm-dee2bb287820edd24ca38c678a45295426cb2b28.tar.gz |
Initial commit
Diffstat (limited to 'source/app.d')
-rw-r--r-- | source/app.d | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/source/app.d b/source/app.d new file mode 100644 index 0000000..94f7ac8 --- /dev/null +++ b/source/app.d @@ -0,0 +1,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; +} |