forked from qt-creator/qt-creator
Python: Allow installing requirement files
Change-Id: If4ac1470fdba4b9f1070fc37d35d5d738a18865f Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -63,6 +63,8 @@ class PipInstallTask : public QObject
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit PipInstallTask(const Utils::FilePath &python);
|
||||
void setRequirements(const Utils::FilePath &requirementFile);
|
||||
void setWorkingDirectory(const Utils::FilePath &workingDirectory);
|
||||
void addPackage(const PipPackage &package);
|
||||
void setPackages(const QList<PipPackage> &packages);
|
||||
void run();
|
||||
@@ -80,6 +82,7 @@ private:
|
||||
|
||||
const Utils::FilePath m_python;
|
||||
QList<PipPackage> m_packages;
|
||||
Utils::FilePath m_requirementsFile;
|
||||
Utils::Process m_process;
|
||||
QFutureInterface<void> m_future;
|
||||
QFutureWatcher<void> m_watcher;
|
||||
|
||||
Reference in New Issue
Block a user