# "arch" depended configuration for the sections "python", "before\_install" and "virtualenv"

**URL:** <https://travis-ci.community/t/arch-depended-configuration-for-the-sections-python-before-install-and-virtualenv/13315>\
**Category:** Python\
**Created:** [September 21, 2022, 7:49am UTC](https://travis-ci.community/t/arch-depended-configuration-for-the-sections-python-before-install-and-virtualenv/13315 "2022-09-21T07:49:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![buhtz](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/buhtz/32/8238_2.png) [@buhtz](https://travis-ci.community/u/buhtz)\
**Post date:** [September 21, 2022, 7:49am UTC](https://travis-ci.community/t/arch-depended-configuration-for-the-sections-python-before-install-and-virtualenv/13315/1 "2022-09-21T07:49:13Z")

</div>

I couldn’t find an example for that in the docs. Sorry.

I want to do something like this where the Python 3.8 interpreter is selected only for the ppc64le architecture and with system-site-packages activated.

```auto
language: python
os: linux
arch :
 - amd64
 - ppc64le

dist: focal

python:
  amd64:
    - "3.6"
    - "3.9"
    - "3.10"
  ppce64le:
     - "3.8_with_system_site_packages"

```

Or something like this

```auto
language: python
os: linux
arch :
 - amd64
 - ppc64le

dist: focal

python:
  amd64:
    - "3.6"
    - "3.9"
    - "3.10"
  ppce64le:
     - "3.8"

virtualenv:
  ppce64le:
    system_site_packages: true

```

And in result of that I need arch depended `before_install` and `install` sections like this

```auto
before_install:
   amd64:
    - python3 -m pip install PyQt5
   pcc64le:
    - sudo apt install python3-pyqt5

```
