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

pixi init --import environment-dev.yml can't parse pip -e . #2384

Open
2 tasks done
raybellwaves opened this issue Oct 30, 2024 · 0 comments
Open
2 tasks done

pixi init --import environment-dev.yml can't parse pip -e . #2384

raybellwaves opened this issue Oct 30, 2024 · 0 comments

Comments

@raybellwaves
Copy link

raybellwaves commented Oct 30, 2024

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

pixi init --import environment-dev.yml

returns

❯ pixi init --import environment-dev.yml
  × Can't parse '-e .' as pypi dependency
  ╰─▶ Expected package name starting with an alphanumeric character, found `-`
      -e .
      ^

Issue description

I have a environment-dev.yml file like

name: "myenv"
channels:
  # internal packages
  - https://HIDDEN.jfrog.io/artifactory/api/conda/conda/dtn
  # conda-forge
  - https://HIDDEN.jfrog.io/artifactory/api/conda/conda
  - nodefaults
dependencies:
  - python=3.12
  - XXX
  - pip
    - -e .

Normally I run mamba env update -f environment-dev.yml. I guess this is the equivalent of mamba env create -f environment.yml & pip install -e

It would be great for pixi init --import to handle this.

Thanks,
Ray

Expected behavior

pixi init --import environment-dev.yml works as expected

@raybellwaves raybellwaves changed the title pixi init --import environment-dev.yml can't parpse pip -e . pixi init --import environment-dev.yml can't parse pip -e . Oct 30, 2024
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

1 participant