cookiecutter: fix tests for python2

This commit is contained in:
Mathieu Virbel 2018-11-16 15:24:19 +01:00
parent 7b5e28d643
commit 679fc62256
2 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
{%- if cookiecutter.python_major == 2 %}
{%- if cookiecutter.python_major == "2" %}
#include "{{ cookiecutter.kivy_dir }}/dist/root/python2/include/python2.7/Python.h"
{%- else %}
#include "{{ cookiecutter.kivy_dir }}/dist/root/python3/include/python3.7m/Python.h"

View file

@ -230,7 +230,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/bash;
{%- if cookiecutter.python_major == 2 %}
{%- if cookiecutter.python_major == "2" %}
shellScript = "{{ cookiecutter.dist_dir }}/hostpython2/bin/python -OO -m compileall \"$PROJECT_DIR\"/YourApp";
{%- else %}
shellScript = "{{ cookiecutter.dist_dir }}/hostpython3/bin/python -m compileall -f -b \"$PROJECT_DIR\"/YourApp";
@ -250,7 +250,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/bash;
{%- if cookiecutter.python_major == 2 %}
{%- if cookiecutter.python_major == "2" %}
shellScript = "find \"$PROJECT_DIR\"/YourApp/ -regex '.*\\.py[c]*' -delete";
{%- else %}
shellScript = "find \"$PROJECT_DIR\"/YourApp/ -regex '.*\\.py' -delete";