mcc,
@mcc@mastodon.social avatar

Somebody should make an OS-agnostic program that searches the hard drive and returns a count of how many versions of Python you have installed

howtophil,
@howtophil@mastodon.social avatar

@mcc There's probably one written that only works in the version of python you don't have installed

grrrr_shark,
@grrrr_shark@supervolcano.angryshark.eu avatar

@howtophil @mcc oof, I felt this one in my bones.

aburka,
@aburka@hachyderm.io avatar

@mcc I love their recent innovation where pip refuses to install stuff, refers you to your package manager which of course doesn't have it, so you just have to type --break-system-packages like I'm opening the freaking Marauder's Map

mcc,
@mcc@mastodon.social avatar

@aburka Would you like a suggestion

aburka,
@aburka@hachyderm.io avatar

@mcc yes please

mcc,
@mcc@mastodon.social avatar

@aburka use pipx, it is a variant of pip designed to rest safely on top of the break-system-packages weirdness instead of screwing with it

It is basically a drop in replacement, it is annoying to switch python tools AGAIN but once you do it just works

The downside is pipx packages are not shared between accounts

aburka,
@aburka@hachyderm.io avatar

@mcc unfortunately not a complete solution because it's just for installing binaries, not library dependencies

mcc,
@mcc@mastodon.social avatar

@aburka oh. Really?

Hm, I need to reread some docs.

BubblegumYeti,
@BubblegumYeti@mastodon.social avatar

@mcc we using python for that??

mcc,
@mcc@mastodon.social avatar
demiurg,
@demiurg@fosstodon.org avatar
nf3xn,
@nf3xn@mastodon.social avatar

@demiurg @mcc this only counts the versions pyenv is aware of...

...at least with python you only have to check the disk - it's not like trying to find the ancient java in the mini-computer within your main computer chip

mdione,
@mdione@en.osm.town avatar

@demiurg @mcc hmmm, but it doesn't work if the answer is 0, unsless it vendors a static version of the interpreter? See also:python is not in $PATH

mcc,
@mcc@mastodon.social avatar

@mdione @demiurg is it possible to write a Python/sh polyglot?

jimfl,
@jimfl@hachyderm.io avatar

@mcc Except that the problem is NP-hard

jleedev,
@jleedev@mastodon.sdf.org avatar

@mcc I was about to dunk on google-cloud-cli but since I last checked I am delighted to report that they are no longer bundling a python interpreter for a completely different architecture and the installed-size is several hundred MB smaller.

mcc,
@mcc@mastodon.social avatar

@jleedev if you want a substitute reason to dunk on Google Cloud, they refused to let me delete my account unless I agreed to the service T&Cs first

tedmielczarek,
@tedmielczarek@mastodon.social avatar

@mcc call it ophiology

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines