robotpy / robotpy-installer

RobotPy installer program
MIT License
5 stars 11 forks source link

Replace pip.main() in installer #20

Closed paigevegna closed 5 years ago

paigevegna commented 5 years ago

The installer script uses the older version of the pip package. Specifically, the code uses the pip.main() function, which has been removed since pip version 10.

A quick workaround would be the callable-pip package, a wrapper around pip that allows you to use the pip.main() syntax that's currently there. The long-term solution would be to either using subprocess to call pip or using import statements.

virtuald commented 5 years ago

Thanks for noticing this. I'll probably fix it once I start deploying RobotPy to my beta roborio image, unless someone else fixes it first!

Subprocess is probably the best way to go. Something like subprocess.call([sys.executable, '-m', 'pip'] + *args )...

auscompgeek commented 5 years ago

Huh, I could've sworn we fixed this.

virtuald commented 5 years ago

Ah yes, duplicate of #15 . @paigevegna if you upgrade your version of the installer it should work for you!