Page 1 of 1

Edupython and matplotlib

Published: October 25, 2019 - 4:33 PM
by gaelds
Good morning,
I created a package that installs matplotlib, but the teachers also need the "matplotlib" library. Is it possible to install it in the wapt package?
In manual mode, I run the following commands:

Code: Select all

ECHO UNINSTALL MAPTPLOTLIB 
"C:\Program Files (x86)\EduPython\App\Scripts\pip" uninstall --exists-action i -q -y matplotlib
ECHO INSTALL MAPTPLOTLIB 
"C:\Program Files (x86)\EduPython\App\Scripts\pip" install matplotlib

Re: Edupython and matplotlib

Published: October 28, 2019 - 7:07 PM
by dcardon
Hello Gaelds,
gaelds wrote: Oct 25, 2019 - 4:33 PM I created a package that installs matplotlib, but the teachers also need the "matplotlib" library. Is it possible to install it in the wapt package?
Manually, I run the following commands:
...
It's best to have self-contained WAPT packages. You can collect the necessary dependencies with a requirements file (just add one line: matplotlib)

Code: Select all

"C:\Program Files (x86)\EduPython\App\Scripts\pip.exe"  download -r requirements.txt
After that, you can put the wheel files in the WAPT package and then in setup.py

Code: Select all

"C:\Program Files (x86)\EduPython\App\Scripts\pip.exe" --no-index --find-links ./ -r requirements.txt
That should make the installation silent.

Sincerely,

Denis

Re: Edupython and matplotlib

Published: November 4, 2019 - 8:29 AM
by gaelds
Good morning,
Sorry, I didn't quite understand your answer.
It's best to have self-contained WAPT packages. You can collect the necessary dependencies with a requirements file (just add one line: matplotlib)
Do I need to create a separate package for matplotlib that would have edupython as a dependency?
Do I need to create or copy the requirements.txt file to "C:\Program Files (x86)\EduPython\App\Scripts\" using a command in this matplotlib package?
What are "wheel" files?