Blob Blame History Raw
{
    "app-id": "org.test.Python",
    "runtime": "org.test.PythonPlatform",
    "sdk": "org.test.PythonSdk",
    "command": "testpython.py",
    "modules": [
        {
            "name": "compiled-python",
            "post-install": [
                "mkdir /app/bin",
	        "cp testpython.py /app/bin",
	        "cp importme.py /app/bin",
                /* Compile importme.py */
                "/app/bin/testpython.py"
            ],
            "sources": [
                {
                    "type": "file",
                    "path": "empty-configure",
                    "dest-filename": "configure"
                },
                {
                    "type": "file",
                    "path": "testpython.py"
                },
                {
                    "type": "file",
                    "path": "importme.py"
                }
            ]
        },
        {
            "name": "modify-python",
            "post-install": [
	        "cp --remove-destination importme2.py /app/bin/importme.py"
            ],
            "sources": [
                {
                    "type": "file",
                    "path": "empty-configure",
                    "dest-filename": "configure"
                },
                {
                    "type": "file",
                    "path": "importme2.py"
                }
            ]
        },
        {
            "name": "recompile-modified-python",
            "post-install": [
                "/app/bin/testpython.py"
            ],
            "sources": [
                {
                    "type": "file",
                    "path": "empty-configure",
                    "dest-filename": "configure"
                }
            ]
        }
    ]
}