tag:help.appveyor.com,2012-11-13:/discussions/questions/47731-how-to-code-how-to-code-an-installation-according-to-the-python-versionAppVeyor: Discussion 2020-04-16T23:19:12Ztag:help.appveyor.com,2012-11-13:Comment/482467492020-04-16T22:41:44Z2020-04-16T22:41:44ZHow to code an installation according to the python version?<div><p>So, on Windows you can have something like:</p>
<pre>
<code>install:
...
- IF "%PYTHON%"=="C:\Python35" pip3 install Foofoo==1.1.1
- IF "%PYTHON%"=="C:\Python36" pip3 install Foofoo==2.2.2
- IF "%PYTHON%"=="C:\Python37" pip3 install Foofoo==3.3.3
...</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/482467492020-04-16T22:44:46Z2020-04-16T22:44:46ZHow to code an installation according to the python version?<div><p>...or, alternatively have different <code>install</code> sections for every Python:</p>
<pre>
<code>environment:
matrix:
- PYTHON: "C:\Python35"
- PYTHON: "C:\Python36"
- PYTHON: "C:\Python37"
for:
-
matrix:
only:
- PYTHON: "C:\Python35"
install:
- pip3 install Foofoo==1.1.1
-
matrix:
only:
- PYTHON: "C:\Python36"
install:
- pip3 install Foofoo==2.2.2
-
matrix:
only:
- PYTHON: "C:\Python37"
install:
- pip3 install Foofoo==3.3.3</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/482467492020-04-16T23:19:00Z2020-04-16T23:19:00ZHow to code an installation according to the python version?<div><p>Thank you very much!<br>
As always you give a precise and very high quality answer !<br>
You solved my problem perfectly!<br>
Thank's again !<br>
All the best</p></div>servoz