Sha256: 903feb0d83e9adb58a95c776193db2ec9fdcf083362277a0b3a32bc02ea175c3

Contents?: true

Size: 367 Bytes

Versions: 7

Compression:

Stored size: 367 Bytes

Contents

module LearnOpen
  module DependencyInstallers
    class PipInstaller < BaseInstaller
      def self.detect(lesson, location)
        File.exists?("#{lesson.to_path}/requirements.txt")
      end

      def run
        io.puts "Installing pip dependencies..."
        system_adapter.run_command("python -m pip install -r requirements.txt")
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
learn-open-1.2.28 lib/learn_open/services/dependency_installers/pip_installer.rb
learn-open-1.2.27 lib/learn_open/services/dependency_installers/pip_installer.rb
learn-open-1.2.26 lib/learn_open/services/dependency_installers/pip_installer.rb
learn-open-1.2.24 lib/learn_open/services/dependency_installers/pip_installer.rb
learn-open-1.2.23 lib/learn_open/services/dependency_installers/pip_installer.rb
learn-open-1.2.22 lib/learn_open/services/dependency_installers/pip_installer.rb
learn-open-1.2.21 lib/learn_open/services/dependency_installers/pip_installer.rb