Skip to content

python::pip Specifying a local path in url fails #91

@mykter

Description

@mykter

Assuming a python package is available locally at /path/to/package, then this attempt to install it with pip fails:

python::pip { 'package':
  url => '/path/to/package'
}

This snippet in pip.pp:

$source = $url ? {
  false => $pkgname,
  default => "${url}#egg=${egg_name}",
}

causes explicitly specified local urls to have #egg=... appended to them, which causes the install to fail.

It can be worked around by not specifying a url, e.g.:

python::pip{ '/path/to/package': }

but this isn't intuitive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions