Skip to content

Commit 0bc3135

Browse files
committed
update truffle import and set options to stable that are
1 parent 7a651ba commit 0bc3135

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/PythonOptions.java

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@
2525
*/
2626
package com.oracle.graal.python.runtime;
2727

28-
import org.graalvm.options.OptionCategory;
29-
import org.graalvm.options.OptionDescriptors;
30-
import org.graalvm.options.OptionKey;
31-
3228
import com.oracle.graal.python.PythonLanguage;
3329
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
3430
import com.oracle.truffle.api.Option;
3531

32+
import org.graalvm.options.OptionCategory;
33+
import org.graalvm.options.OptionDescriptors;
34+
import org.graalvm.options.OptionKey;
35+
import org.graalvm.options.OptionStability;
36+
3637
@Option.Group(PythonLanguage.ID)
3738
public final class PythonOptions {
3839
private static final String EXECUTABLE_LIST_SEPARATOR = "🏆";
@@ -41,16 +42,16 @@ private PythonOptions() {
4142
// no instances
4243
}
4344

44-
@Option(category = OptionCategory.USER, help = "Set the location of sys.prefix. Overrides any environment variables or Java options.") //
45+
@Option(category = OptionCategory.USER, help = "Set the location of sys.prefix. Overrides any environment variables or Java options.", stability = OptionStability.STABLE) //
4546
public static final OptionKey<String> SysPrefix = new OptionKey<>("");
4647

4748
@Option(category = OptionCategory.EXPERT, help = "Set the location of sys.base_prefix. Overrides any environment variables or Java options.") //
4849
public static final OptionKey<String> SysBasePrefix = new OptionKey<>("");
4950

50-
@Option(category = OptionCategory.USER, help = "Set the location of lib-graalpython. Overrides any environment variables or Java options.") //
51+
@Option(category = OptionCategory.USER, help = "Set the location of lib-graalpython. Overrides any environment variables or Java options.", stability = OptionStability.STABLE) //
5152
public static final OptionKey<String> CoreHome = new OptionKey<>("");
5253

53-
@Option(category = OptionCategory.USER, help = "Set the location of lib-python/3. Overrides any environment variables or Java options.") //
54+
@Option(category = OptionCategory.USER, help = "Set the location of lib-python/3. Overrides any environment variables or Java options.", stability = OptionStability.STABLE) //
5455
public static final OptionKey<String> StdLibHome = new OptionKey<>("");
5556

5657
@Option(category = OptionCategory.USER, help = "This option makes reading from files return opaque objects. Imports can work with such data, " +
@@ -60,28 +61,28 @@ private PythonOptions() {
6061
@Option(category = OptionCategory.USER, help = "List of root paths for the opaque file system (default: '/'); use system-specific path separator.") //
6162
public static final OptionKey<String> OpaqueFilesystemPrefixes = new OptionKey<>("/");
6263

63-
@Option(category = OptionCategory.USER, help = "Equivalent to the Python -i flag. Inspect interactively after running a script.") //
64+
@Option(category = OptionCategory.USER, help = "Equivalent to the Python -i flag. Inspect interactively after running a script.", stability = OptionStability.STABLE) //
6465
public static final OptionKey<Boolean> InspectFlag = new OptionKey<>(false);
6566

66-
@Option(category = OptionCategory.USER, help = "Equivalent to the Python -q flag. Don't print version and copyright messages on interactive startup.") //
67+
@Option(category = OptionCategory.USER, help = "Equivalent to the Python -q flag. Don't print version and copyright messages on interactive startup.", stability = OptionStability.STABLE) //
6768
public static final OptionKey<Boolean> QuietFlag = new OptionKey<>(false);
6869

69-
@Option(category = OptionCategory.USER, help = "Equivalent to the Python -S flag. Don't imply 'import site' on initialization.") //
70+
@Option(category = OptionCategory.USER, help = "Equivalent to the Python -S flag. Don't imply 'import site' on initialization.", stability = OptionStability.STABLE) //
7071
public static final OptionKey<Boolean> NoSiteFlag = new OptionKey<>(false);
7172

72-
@Option(category = OptionCategory.USER, help = "Equivalent to the Python -s flag. Don't add user site directory to sys.path.") //
73+
@Option(category = OptionCategory.USER, help = "Equivalent to the Python -s flag. Don't add user site directory to sys.path.", stability = OptionStability.STABLE) //
7374
public static final OptionKey<Boolean> NoUserSiteFlag = new OptionKey<>(false);
7475

75-
@Option(category = OptionCategory.USER, help = "Equivalent to the Python -E flag. Ignore PYTHON* environment variables.") //
76+
@Option(category = OptionCategory.USER, help = "Equivalent to the Python -E flag. Ignore PYTHON* environment variables.", stability = OptionStability.STABLE) //
7677
public static final OptionKey<Boolean> IgnoreEnvironmentFlag = new OptionKey<>(false);
7778

78-
@Option(category = OptionCategory.USER, help = "Equivalent to setting the PYTHONPATH environment variable for the standard launcher. ':'-separated list of directories prefixed to the default module search path.") //
79+
@Option(category = OptionCategory.USER, help = "Equivalent to setting the PYTHONPATH environment variable for the standard launcher. ':'-separated list of directories prefixed to the default module search path.", stability = OptionStability.STABLE) //
7980
public static final OptionKey<String> PythonPath = new OptionKey<>("");
8081

81-
@Option(category = OptionCategory.USER, help = "Remove assert statements and any code conditional on the value of __debug__.") //
82+
@Option(category = OptionCategory.USER, help = "Remove assert statements and any code conditional on the value of __debug__.", stability = OptionStability.STABLE) //
8283
public static final OptionKey<Boolean> PythonOptimizeFlag = new OptionKey<>(false);
8384

84-
@Option(category = OptionCategory.USER, help = "Equivalent to the Python -v flag. Turn on verbose mode.") //
85+
@Option(category = OptionCategory.USER, help = "Equivalent to the Python -v flag. Turn on verbose mode.", stability = OptionStability.STABLE) //
8586
public static final OptionKey<Boolean> VerboseFlag = new OptionKey<>(false);
8687

8788
@Option(category = OptionCategory.USER, help = "Equivalent to the Python -u flag. Force stdout and stderr to be unbuffered.") //

mx.graalpython/suite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@
4444
},
4545
{
4646
"name": "sulong",
47-
"version": "a1950e8e4fa2e57ef676015e04f4f7ebde0f473a",
47+
"version": "fba16962a49c55422f05a34a4b95de36910cb210",
4848
"subdir": True,
4949
"urls": [
5050
{"url": "https://github.com/oracle/graal", "kind": "git"},
5151
]
5252
},
5353
{
5454
"name": "regex",
55-
"version": "a1950e8e4fa2e57ef676015e04f4f7ebde0f473a",
55+
"version": "fba16962a49c55422f05a34a4b95de36910cb210",
5656
"subdir": True,
5757
"urls": [
5858
{"url": "https://github.com/oracle/graal", "kind": "git"},

0 commit comments

Comments
 (0)