forked from finos/perspective
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrepl.js
33 lines (28 loc) · 907 Bytes
/
repl.js
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
/******************************************************************************
*
* Copyright (c) 2017, the Perspective Authors.
*
* This file is part of the Perspective library, distributed under the terms of
* the Apache License 2.0. The full license can be found in the LICENSE file.
*
*/
const {execute, docker, getarg, python_image} = require("./script_utils.js");
let PYTHON = getarg("--python38")
? "python3.8"
: getarg("--python36")
? "python3.6"
: "python3.7";
let IMAGE = "manylinux2010";
let MANYLINUX_VERSION = getarg("--manylinux2010")
? "manylinux2010"
: getarg("--manylinux2014")
? "manylinux2014"
: "manylinux2010";
IMAGE = python_image(MANYLINUX_VERSION, PYTHON);
try {
// Open a shell in the Docker image used to build perspective-python.
execute`${docker(IMAGE)} bash`;
} catch (e) {
console.log(e.message);
process.exit(1);
}