Code Monkey home page Code Monkey logo

xxenv-latest's People

Contributors

catlee avatar druchoo avatar jmcantrell avatar momo-lab avatar stephenfin avatar toilal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xxenv-latest's Issues

Plugin broken/no longer required on latest pyenv

The latest update to pyenv has added native support for installing the latest python version for a given prefix. At the same time, it has made use of the python latest command for a different purpose. Details here https://github.com/pyenv/pyenv#prefix-auto-resolution

Using this plugin is now no longer required with pyenv and will fail with the following error if used

pyenv: no installed versions match the prefix `install'

The "fix" for users is to uninstall this plugin and to change instances of the install command to remove the latest keyword.

latest local should skip python virtualenvs

toilal@toilal-ubuntu:~$ pyenv latest local 3.7
Latest version is '3.7.3/envs/3.7.3-nodeenv'
(3.7.3/envs/3.7.3-nodeenv) toilal@toilal-ubuntu:~$

I would expect to select the raw 3.7.3, not a virtualenv.

toilal@toilal-ubuntu:~$ pyenv latest local 3.7.3
Latest version is '3.7.3'
toilal@toilal-ubuntu:~$

pyenv latest install fails, says "Latest version is ' 3.8.5'"

pyenv latest install fails, presumably because pyenv install output includes spaces

$ pyenv latest install
Latest version is '  3.8.5'
Usage: pyenv install [-f] [-kvp] <version>
# ... pyenv install output continues

same with pyenv latest install 3.8.5

pyenv install output

$ pyenv install -l | grep 3.8
  3.8.0
  3.8-dev
  3.8.1
  3.8.2
  3.8.3
  3.8.4
  3.8.5
  miniconda-3.8.3
  miniconda3-3.8.3

manual install works

pyenv virtualenv 3.8.5 projname works

$ pyenv versions                  
* system (set by /Users/myusername/.pyenv/version)
  3.8.5
  3.8.5/envs/projname
  projname

environment

macOS 10.15.6 Catalina
pyenv installed via homebrew

$ pyenv -v                  
pyenv 1.2.20

Uninstall: head: illegal option -- -

on macOS Mojave, iTerm2, zsh 5.7.1:

$ which head
/usr/bin/head
$ pyenv latest uninstall 3.7
head: illegal option -- -
usage: head [-n lines | -c bytes] [file ...]

man head gives:

HEAD(1)                   BSD General Commands Manual                  HEAD(1)

NAME
     head -- display first lines of a file

SYNOPSIS
     head [-n count | -c bytes] [file ...]

DESCRIPTION
     This filter displays the first count lines or bytes of each of the specified files, or of the standard input if no files
     are specified.  If count is omitted it defaults to 10.

     If more than a single file is specified, each file is preceded by a header consisting of the string ``==> XXX <=='' where
     ``XXX'' is the name of the file.

EXIT STATUS
     The head utility exits 0 on success, and >0 if an error occurs.

SEE ALSO
     tail(1)

HISTORY
     The head command appeared in PWB UNIX.

BSD                              June 6, 1993                              BSD

I tried this:

-    for version in $(get_local_versions $version_prefix | head --lines=-1); do
+    for version in $(get_local_versions $version_prefix | head -n=-1); do

But it gave:

$ pyenv latest uninstall 3.7
head: illegal line count -- =1

What version of head was this written for, and what does --lines=-1 do?

Enhance pypy support

Thanks for this plugin.

It works nicely with CPython, but pypy support doesn't solves to latest version.

pyenv latest install pypy
Latest version is 'pypy-stm-2.5.1'

But it should gives pypy-5.7.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.