-
Notifications
You must be signed in to change notification settings - Fork 227
Expand file tree
/
Copy pathSetup.java
More file actions
70 lines (66 loc) · 2.45 KB
/
Setup.java
File metadata and controls
70 lines (66 loc) · 2.45 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// Copyright (c) Corporation for National Research Initiatives
package org.python.modules;
import org.python.modules.posix.PosixModule;
// This is sort of analogous to CPython's Modules/Setup file. Use this to
// specify additional builtin modules.
public class Setup
{
// Each element of this array is a string naming a builtin module to
// add to the system. The string has the following allowable forms:
//
// name
// The module name is `name' and the class name is
// org.python.modules.name
//
// name:class
// The module name is `name' and the class name is `class' where
// class must be a fully qualified Java class name
//
// name:null
// The module `name' is removed from the list of builtin modules
//
// That isn't very useful here, but you can add additional builtin
// modules by editing the Jython registry file. See the property
// python.modules.builtin for details.
public static String[] builtinModules = {
"_ast:org.python.antlr.ast.AstModule",
"_bytecodetools",
"_codecs",
"_collections:org.python.modules._collections.Collections",
"_csv:org.python.modules._csv._csv",
"_functools:org.python.modules._functools._functools",
"_hashlib",
"_jyio:org.python.modules._io._jyio",
"_json:org.python.modules._json._json",
"_jythonlib:org.python.modules._jythonlib._jythonlib",
"_marshal",
"_py_compile",
"_random:org.python.modules.random.RandomModule",
"_sre",
"_threading:org.python.modules._threading._threading",
"_weakref:org.python.modules._weakref.WeakrefModule",
"array:org.python.modules.ArrayModule",
"binascii",
"bz2:org.python.modules.bz2.bz2",
"cPickle",
"cStringIO",
"cmath",
"errno",
"exceptions:org.python.core.exceptions",
"gc",
"_imp:org.python.modules._imp",
"itertools:org.python.modules.itertools.itertools",
"jarray",
"jffi:org.python.modules.jffi.jffi",
"_locale:org.python.modules._locale._locale",
"math",
"operator",
"struct",
"synchronize",
"thread:org.python.modules.thread.thread",
"time:org.python.modules.time.Time",
"ucnhash",
"zipimport:org.python.modules.zipimport.zipimport",
PosixModule.getOSName() + ":org.python.modules.posix.PosixModule"
};
}