Skip to content

Commit

Permalink
Merge pull request #20 from coopdevs/feature/use-python3
Browse files Browse the repository at this point in the history
Uses Python3 (3.5) instead of Python2.7
  • Loading branch information
enricostano authored Jul 10, 2018
2 parents 1116438 + b82aaed commit ccda44d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ odoo_role_odoo_git_url: "https://github.com/OCA/OCB.git"
odoo_role_odoo_head: "8ef3986d58a097a04502d9ca1ee0a860d7230723"

odoo_role_odoo_path: /opt/odoo
odoo_role_odoo_bin_path: "{{ odoo_role_odoo_path }}/build/scripts-2.7/odoo"
odoo_role_odoo_bin_path: "{{ odoo_role_odoo_path }}/odoo-bin"
odoo_role_odoo_python_path: "{{ odoo_role_odoo_venv_path }}/bin/python"
odoo_role_odoo_config_path: /etc/odoo
odoo_role_odoo_modules_path: /opt/odoo_modules
Expand Down
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
with_items:
- build-essential
- python-dev
- python3-dev
- libxml2
- libxml2-dev
- libxslt1-dev
Expand Down
4 changes: 2 additions & 2 deletions tasks/virtualenv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
pkg: "{{ item }}"
state: present
with_items:
- virtualenv
- python3-venv

- name: Create virtualenv directory
become: yes
Expand All @@ -22,7 +22,7 @@
register: env

- name: Manually create the initial virtualenv
command: "virtualenv {{ odoo_role_odoo_venv_path }}"
command: "python3 -m venv {{ odoo_role_odoo_venv_path }}"
when: env.stat.isdir is undefined

- name: Change virtualenv permissions
Expand Down

0 comments on commit ccda44d

Please sign in to comment.