Code Monkey home page Code Monkey logo

Comments (3)

dhagrow avatar dhagrow commented on July 19, 2024 2

I hadn't noticed before, but it appears there's been a pull request (#67) for some time now that fixes this issue.

from pip2pi.

leducvin avatar leducvin commented on July 19, 2024

I can confirm everything above. In my case I created a package with package name yaml_cfg.

Here is what is generated in /path/packages/wheels/simple/yaml-cfg/ (using dir2pi):

.
├── index.html
└── yaml-cfg-0.1.2-py2.py3-none-any.whl -> ../../yaml_cfg-0.1.2-py2.py3-none-any.whl

Note yaml-cfg-0.1.2-py2.py3-none-any.whl is a symlink pointing to /path/packages/wheels/yaml_cfg-0.1.2-py2.py3-none-any.whl.

Here is the content of index.html:

<a href='yaml-cfg-0.1.2-py2.py3-none-any.whl'>yaml-cfg-0.1.2-py2.py3-none-any.whl</a><br />

and here is the error upon invoking pip install yaml-cfg or pip install yaml_cfg:

Getting page file:///path/packages/wheels/simple/yaml-cfg/
   file: URL is directory, getting file:///path/packages/wheels/simple/yaml-cfg/index.html
  Analyzing links from page file:///path/packages/wheels/simple/yaml-cfg/index.html
    Skipping link file:///path/packages/wheels/simple/yaml-cfg/yaml-cfg-0.1.2-py2.py3-none-any.whl (from file:///path/packages/wheels/simple/yaml-cfg/index.html); wrong project name (not yaml-cfg)

If I modify index.html as such:

<a href='yaml_cfg-0.1.2-py2.py3-none-any.whl'>yaml-cfg-0.1.2-py2.py3-none-any.whl</a><br />

and do mv /path/packages/wheels/simple/yaml-cfg/yaml-cfg-0.1.2-py2.py3-none-any.whl /path/packages/wheels/simple/yaml-cfg/yaml_cfg-0.1.2-py2.py3-none-any.whl, then I can install using pip.

It seems crucial for pip that the name used in the link located in index.html be the same as the package name.

from pip2pi.

safiyat avatar safiyat commented on July 19, 2024

Closed in #85.

from pip2pi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.