DataLab-Platform / DataLab

Open-source Platform for Scientific and Technical Data Processing and Visualization
https://datalab-platform.com
BSD 3-Clause "New" or "Revised" License
37 stars 4 forks source link

Windows / Install additional packages in standalone executable version #58

Closed PierreRaybaut closed 6 months ago

PierreRaybaut commented 6 months ago

This is a user request that was mentioned during a meeting today (presentation of DataLab to a research laboratory).

The use case is the following:

However, when developing plugins, one has to rely on the Python environment in which DataLab is executed. For the standalone version, that is the frozen executable Python environment built with PyInstaller. The issue is that this specific environment does not allow to install additional packages that would be required by the third-party plugins.

So, we propose to investigate an alternative to PyInstaller: building our own custom WinPython distribution. This would allow to distribute DataLab on Windows with the same advantages as PyInstaller (i.e. ready-to-use standalone DataLab version) and with an access to the Python interpreter/environment, thus allowing to install additional packages.

Warning: this would also be a significant flaw as this distribution could easily be broken by the end-user (whereas the PyInstaller version is bullet proof).

Unless we have another idea to address the initial request?

PierreRaybaut commented 6 months ago

The new DataLab-WinPython project implements a solution this issue.