rattler icon indicating copy to clipboard operation
rattler copied to clipboard

py-rattler PyEnvironment should accepts pypi records in constructor

Open gzm55 opened this issue 5 months ago • 4 comments

Checklist

  • [x] I added a descriptive title
  • [x] I searched open requests and couldn't find a duplicate

What is the idea?

now PyEnvironment only accepts conda packages. pypi packages should also be supported.

see https://github.com/conda/rattler/blob/main/py-rattler/src/lock/mod.rs#L149

Why is this needed?

No response

What should happen?

No response

Additional Context

No response

gzm55 avatar Jun 11 '25 13:06 gzm55

Indeed! Would you be able to open a Pr?

baszalmstra avatar Jun 11 '25 14:06 baszalmstra

@baszalmstra sorry, i'm not familiar with the python api and python binds.

ps, the PyEnvironment seems also lack the api for pypi indexes.

gzm55 avatar Jun 11 '25 15:06 gzm55

could this be somewhat related to #1044 ?

jacopoabramo avatar Jun 13 '25 14:06 jacopoabramo

That totally depends on the API we want here. We can also modify the constructor to accept LockedPackage and allow constructing those types from python as well.

baszalmstra avatar Jun 14 '25 12:06 baszalmstra