mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-29 15:43:58 +00:00
Fix support for pip>=10, Fixes: #123
This commit is contained in:
parent
e465be94b4
commit
52456921d1
@ -17,7 +17,6 @@
|
||||
|
||||
import os
|
||||
import re
|
||||
import pip
|
||||
import sys
|
||||
import shutil
|
||||
import psutil
|
||||
@ -95,7 +94,7 @@ def download_command(arguments):
|
||||
else:
|
||||
requirements = 'requirements.txt'
|
||||
|
||||
pip.main(['install', '-r', os.path.join(source_directory, requirements)])
|
||||
subprocess.check_call([sys.executable, '-m', 'pip', 'install', '-r', os.path.join(source_directory, requirements)])
|
||||
|
||||
|
||||
def build_command(arguments):
|
||||
|
@ -104,7 +104,7 @@ describe('InterfaceLabelsWidget', () => {
|
||||
links[0].nodes[0].label.is_selected = true;
|
||||
|
||||
widget.draw(linksEnter);
|
||||
|
||||
|
||||
const drew = svg.canvas.selectAll<SVGGElement, InterfaceLabel>('g.interface_label_container');
|
||||
const sourceInterface = drew.nodes()[0];
|
||||
expect(sourceInterface.getAttribute('class')).toContain('selected');
|
||||
|
Loading…
x
Reference in New Issue
Block a user