Blame tests/org.test.Python2.json

rpm-build c487f7
{
rpm-build c487f7
    "app-id": "org.test.Python2",
rpm-build c487f7
    "runtime": "org.test.PythonPlatform",
rpm-build c487f7
    "sdk": "org.test.PythonSdk",
rpm-build c487f7
    "command": "testpython.py",
rpm-build c487f7
    "modules": [
rpm-build c487f7
        {
rpm-build c487f7
            "name": "compiled-python",
rpm-build c487f7
            "post-install": [
rpm-build c487f7
                "mkdir /app/bin",
rpm-build c487f7
                "cp testpython.py /app/bin",
rpm-build c487f7
                "cp importme.py /app/bin",
rpm-build c487f7
                /* Compile importme.py */
rpm-build c487f7
                "/app/bin/testpython.py",
rpm-build c487f7
                /* Remove .py file, but keep .pyc */
rpm-build c487f7
                "rm  /app/bin/importme.py",
rpm-build c487f7
                /* Make sure it still works */
rpm-build c487f7
                "/app/bin/testpython.py"
rpm-build c487f7
            ],
rpm-build c487f7
            "sources": [
rpm-build c487f7
                {
rpm-build c487f7
                    "type": "file",
rpm-build c487f7
                    "path": "empty-configure",
rpm-build c487f7
                    "dest-filename": "configure"
rpm-build c487f7
                },
rpm-build c487f7
                {
rpm-build c487f7
                    "type": "file",
rpm-build c487f7
                    "path": "testpython.py"
rpm-build c487f7
                },
rpm-build c487f7
                {
rpm-build c487f7
                    "type": "file",
rpm-build c487f7
                    "path": "importme.py"
rpm-build c487f7
                }
rpm-build c487f7
            ]
rpm-build c487f7
        }
rpm-build c487f7
    ]
rpm-build c487f7
}