re-add PYTHONOPTIMIZE to properly parse .pyo files (at @tito's suggestion)
This commit is contained in:
parent
8c7b619883
commit
c7e7b0f403
2 changed files with 3 additions and 2 deletions
|
@ -26,6 +26,7 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
// Special environment to prefer .pyo, and don't write bytecode if .py are found
|
// Special environment to prefer .pyo, and don't write bytecode if .py are found
|
||||||
// because the process will not have a write attribute on the device.
|
// because the process will not have a write attribute on the device.
|
||||||
|
putenv("PYTHONOPTIMIZE=2");
|
||||||
putenv("PYTHONDONTWRITEBYTECODE=1");
|
putenv("PYTHONDONTWRITEBYTECODE=1");
|
||||||
putenv("PYTHONNOUSERSITE=1");
|
putenv("PYTHONNOUSERSITE=1");
|
||||||
putenv("PYTHONPATH=.");
|
putenv("PYTHONPATH=.");
|
||||||
|
|
|
@ -255,9 +255,9 @@
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
shellPath = /bin/bash;
|
shellPath = /bin/bash;
|
||||||
{%- if cookiecutter.python_major == "2" %}
|
{%- if cookiecutter.python_major == "2" %}
|
||||||
shellScript = "#find \"$PROJECT_DIR\"/YourApp/ -regex '.*\\.py[c]*' -delete";
|
shellScript = "find \"$PROJECT_DIR\"/YourApp/ -regex '.*\\.py[c]*' -delete";
|
||||||
{%- else %}
|
{%- else %}
|
||||||
shellScript = "#find \"$PROJECT_DIR\"/YourApp/ -regex '.*\\.py' -delete";
|
shellScript = "find \"$PROJECT_DIR\"/YourApp/ -regex '.*\\.py' -delete";
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
};
|
};
|
||||||
/* End PBXShellScriptBuildPhase section */
|
/* End PBXShellScriptBuildPhase section */
|
||||||
|
|
Loading…
Add table
Reference in a new issue