-
Notifications
You must be signed in to change notification settings - Fork 606
Conversation
This is where reimplementing pip starts to suck, you can have both |
Ok, I could build a more complex rex to address this, would that suffice? |
@ampledata I'm trying really hard to avoid this stuff as much as possible because it is going to result in reimplementing large swaths of pip in Ruby. |
I understand, I believe you, I'm just trying to fix a bug. One bug at a time, that's what the 12-step folks say, right? |
So uh, why are you reimplementing pip in ruby |
@dstufft Given a "package name" that is actually a URL we need to get its real name to check its version to know if we need to actually call pip :-( |
specifically an url, or any requirement? |
@dstufft The more the merrier, but this patch specifically addresses a URL with |
Part of the issue is that git-based requirements are kind of inherently not idempotent in any useful way |
Right, I'm just trying to think if there's a better way than reimplementing pip, because the rules of |
@dstufft can haz |
if it's a vcs url, there's no supported use of a hash fragment, right?, and pip's vcs urls start with yes, as for the dry run idea to determine the spec for real... although I rarely use |
btw, I know this is chef-world, but I was recently tasked with creating a puppet virtualenv module that supported requirements files and all of pip's requirement forms (package specifiers, vcs urls, pkg urls), and in order to NOT recreate pip in ruby, the path we've taken for now is to create custom ruby types that simply wrap a python module (that internally uses pip and pkg_resources, |
@qwcode Yeah, see https://github.com/coderanger/python-cookbook/blob/master/libraries/package.rb#L32-L45. It is very :-( though. |
This is now better handled by the |
Added conditional to check for and extract egg/package name from URLs.
Fixes #84.