Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to specify “extras” in pip_add ? #103

Open
x-EricH-x opened this issue Aug 4, 2023 · 1 comment
Open

Not able to specify “extras” in pip_add ? #103

x-EricH-x opened this issue Aug 4, 2023 · 1 comment
Assignees
Milestone

Comments

@x-EricH-x
Copy link

x-EricH-x commented Aug 4, 2023

sometimes it is necessary to specify the [extras] when doing pip install,
but is seems pip_add does not support it

right now it gives this error:
(command conda pip_add polars[numpy])

(my-julia-proj) pkg> conda pip_add polars[numpy]
ERROR: invalid pip package: polars[numpy]
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] parse_pip_pkg(x::String; binary::String)
    @ CondaPkg.PkgREPL ~/.julia/packages/CondaPkg/osUdN/src/PkgREPL.jl:33
  [3] (::CondaPkg.PkgREPL.var"#4#5"{String})(arg::String)
    @ CondaPkg.PkgREPL ./none:0
  [4] iterate
    @ ./generator.jl:47 [inlined]
  [5] collect(itr::Base.Generator{Vector{String}, CondaPkg.PkgREPL.var"#4#5"{String}})
    @ Base ./array.jl:782
  [6] pip_add(args::Vector{String}; binary::String)
    @ CondaPkg.PkgREPL ~/.julia/packages/CondaPkg/osUdN/src/PkgREPL.jl:187
  [7] pip_add(args::Vector{String})
    @ CondaPkg.PkgREPL ~/.julia/packages/CondaPkg/osUdN/src/PkgREPL.jl:186
  [8] do_cmd!(command::Pkg.REPLMode.Command, repl::REPL.LineEditREPL)
    @ Pkg.REPLMode ~/julia-1.9.2/share/julia/stdlib/v1.9/Pkg/src/REPLMode/REPLMode.jl:412
  [9] do_cmd(repl::REPL.LineEditREPL, input::String; do_rethrow::Bool)
    @ Pkg.REPLMode ~/julia-1.9.2/share/julia/stdlib/v1.9/Pkg/src/REPLMode/REPLMode.jl:390
 [10] do_cmd
    @ ~/julia-1.9.2/share/julia/stdlib/v1.9/Pkg/src/REPLMode/REPLMode.jl:380 [inlined]
 [11] (::Pkg.REPLMode.var"#24#27"{REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool)
    @ Pkg.REPLMode ~/julia-1.9.2/share/julia/stdlib/v1.9/Pkg/src/REPLMode/REPLMode.jl:557
 [12] #invokelatest#2
    @ ./essentials.jl:816 [inlined]
 [13] invokelatest
    @ ./essentials.jl:813 [inlined]
 [14] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit ~/julia-1.9.2/share/julia/stdlib/v1.9/REPL/src/LineEdit.jl:2647
 [15] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
    @ REPL ~/julia-1.9.2/share/julia/stdlib/v1.9/REPL/src/REPL.jl:1300
 [16] (::REPL.var"#62#68"{REPL.LineEditREPL, REPL.REPLBackendRef})()
    @ REPL ./task.jl:514
@x-EricH-x x-EricH-x changed the title Not able to specify “extras” in pip_add Not able to specify “extras” in pip_add ? Aug 4, 2023
@cjdoris
Copy link
Collaborator

cjdoris commented Aug 5, 2023

Indeed it's not currently supported - but would be fairly easy to add.

@cjdoris cjdoris self-assigned this Oct 21, 2023
@cjdoris cjdoris added this to the features milestone Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants