Giter Site home page Giter Site logo

Comments (3)

svetlyak40wt avatar svetlyak40wt commented on July 20, 2024

Well, after further investigation, I found, that pip (1.4.1), by default, sets allow_all_insecure and allow_all_external on PackageFinder during pip install. Although such simple patch fixes the issue:

diff --git a/piptools/package_manager.py b/piptools/package_manager.py
index 7b3125a..56da428 100644
--- a/piptools/package_manager.py
+++ b/piptools/package_manager.py
@@ -260,6 +260,8 @@ class PackageManager(BasePackageManager):
                     index_urls=['https://pypi.python.org/simple/'],
                     use_mirrors=True,
                     mirrors=[],
+                    allow_all_external=True,
+                    allow_all_insecure=True,
                 )
                 link = finder.find_requirement(requirement, False)
                 self._link_cache[specline] = link

I think it is not best idea, to hardcode these parameters. It is better to add ability to pass any unknown command line option down to pip's package manager.

from pip-tools.

nvie avatar nvie commented on July 20, 2024

Agreed, passing down options makes sense.

from pip-tools.

nvie avatar nvie commented on July 20, 2024

I'm closing old issues. If this issue still applies and requires my attention, I ask you kindly to re-open it or file a new issue. Thanks.

from pip-tools.

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.