Class PythonResource

java.lang.Object
com.oracle.graal.python.resources.PythonResource
All Implemented Interfaces:
com.oracle.truffle.api.InternalResource

public final class PythonResource extends Object implements com.oracle.truffle.api.InternalResource
This code needs to be kept in sync somehow with the suite.py code. In particular, the layouts produced by the unpacking logic in unpackFiles(com.oracle.truffle.api.InternalResource.Env, java.nio.file.Path) should produce the same layout as the GRAALPYTHON_GRAALVM_SUPPORT distribution in the suite.py.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.oracle.truffle.api.InternalResource

    com.oracle.truffle.api.InternalResource.CPUArchitecture, com.oracle.truffle.api.InternalResource.Env, com.oracle.truffle.api.InternalResource.Id, com.oracle.truffle.api.InternalResource.OS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    unpackFiles(com.oracle.truffle.api.InternalResource.Env env, Path targetDirectory)
     
    versionHash(com.oracle.truffle.api.InternalResource.Env env)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PythonResource

      public PythonResource()
  • Method Details

    • unpackFiles

      public void unpackFiles(com.oracle.truffle.api.InternalResource.Env env, Path targetDirectory) throws IOException
      Specified by:
      unpackFiles in interface com.oracle.truffle.api.InternalResource
      Throws:
      IOException
    • versionHash

      public String versionHash(com.oracle.truffle.api.InternalResource.Env env)
      Specified by:
      versionHash in interface com.oracle.truffle.api.InternalResource