
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
Respect top-level "constraints" file when populating isolated build environments Β· Issue #8439 Β· pypa/pip
Description:
Environment pip version: 20.1.1 Python version: 3.8.2 OS: Linux pip freeze output: attrs==19.3.0 certifi==2020.4.5.2 chardet==3.0.4 docutils==0.16 flit==2.3.0 flit-core==2.3.0 idna==2.9 punq==0.4.1 pytoml==0.1.21 requests==2.23.0 urllib3...
Website Age:
17 years and 9 months (reg. 2007-10-09).
Matching Content Categories {π}
- Technology & Computing
- DIY & Home Improvement
- Video & Online Content
Content Management System {π}
What CMS is github.com built with?
Github.com operates using WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,666,394 visitors per month in the current month.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 5,347,507 paying customers.
The estimated monthly recurring revenue (MRR) is $22,459,531.
The estimated annual recurring revenues (ARR) are $269,514,368.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {π}
build, command, pip, constraints, install, dependent, issue, pep, file, mwchase, flit, dependencybleh, isolation, dependencies, dependency, constraintstxt, error, mentioned, sign, projects, version, output, installing, requirements, added, apljungquist, open, requests, isolated, behavior, create, project, processing, status, commented, workaround, ast, analysis, verified, pinning, navigation, pull, actions, security, respect, toplevel, populating, environments, description, environment,
Topics {βοΈ}
triage issues/prs pip install command build isolation projects installing backend dependencies primary pip command 1 python version support url constraints build system requirements isolated environment direct reference linking warn-script-location matching distribution found left open secure default behaviors comment metadata assignees activity ghost added full command output original command fails build dependencies apljungquist mentioned constraints files passed deliberately broke flit' ast analysis fails rethink pip' build isolation exit status 1 projects milestone 21 requests==2 local install build backends build wheel pep 517 processing pep 517 backend requirement dependency_bleh proper pinning /dependent processing ///absolute/path/ txt path/ complete output txt file uranusjr added bmw added constraints files ast analysis projects generated command command errored acceptable workaround constraints file runtime requirements
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:Respect top-level "constraints" file when populating isolated build environments
articleBody:**Environment**
* pip version: 20.1.1
* Python version: 3.8.2
* OS: Linux
<!-- Feel free to add more information about your environment here -->
`pip freeze` output:
```
attrs==19.3.0
certifi==2020.4.5.2
chardet==3.0.4
docutils==0.16
flit==2.3.0
flit-core==2.3.0
idna==2.9
punq==0.4.1
pytoml==0.1.21
requests==2.23.0
urllib3==1.25.9
```
**Description**
<!-- A clear and concise description of what the bug is. -->
Installing a package using a PEP 517 backend with build isolation enabled results in an `install_requirements` call using the return value of `backend.get_requires_for_build_wheel()`, which generates and runs a `pip install` command. Constraints files passed to the outermost `pip install` command are not reflected in the generated command.
This means that, at least when using flit, a local install with build isolation will fail if it's relying on a constraints file to specify paths to dependencies that are only available locally.
(The other build backends I checked don't require the runtime requirements in the isolated environment. I brought this up in the flit repo first in https://github.com/takluyver/flit/issues/354)
**Expected behavior**
<!-- A clear and concise description of what you expected to happen. -->
Given two projects, a dependency and a dependent, with the dependent using flit, and the dependency not present in an index, the command `pip install -c path/to/constraints.txt path/to/dependent`, where the constraints file has a line like `name-of-dependency @ file:///absolute/path/to/dependency` should succeed.
**How to Reproduce**
<!-- Describe the steps to reproduce this bug. -->
1. Create a "dependency" project with a name not present in pypi
2. Create a "dependent" project that depends on the dependency, using flit
3. Create a `constraints.txt` file that at least contains a direct reference linking the name of the dependency to its absolute path
4 Run `pip install -c constraints.txt ./dependent`, assuming the constraints file and the project directories are next to each other
**Output**
```
$ ls
constraints.txt dependency_bleh dependent
$ cat constraints.txt
dependency_bleh @ file:///absolute/path/of/pwd/dependency_bleh
dependent @ file:///absolute/path/of/pwd/dependent
$ pip install -c constraints.txt ./dependent
Processing ./dependent
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... error
ERROR: Command errored out with exit status 1:
command: <venv>/bin/python3.8 <venv>/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-67rnvdf5/normal --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- dependency_bleh
cwd: None
Complete output (2 lines):
ERROR: Could not find a version that satisfies the requirement dependency_bleh (from versions: none)
ERROR: No matching distribution found for dependency_bleh
----------------------------------------
ERROR: Command errored out with exit status 1: <venv>/bin/python3.8 <venv>/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-67rnvdf5/normal --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- dependency_bleh Check the logs for full command output.
```
author:
url:https://github.com/mwchase
type:Person
name:mwchase
datePublished:2020-06-14T16:18:14.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:5
url:https://github.com/8439/pip/issues/8439
context:https://schema.org
headline:Respect top-level "constraints" file when populating isolated build environments
articleBody:**Environment**
* pip version: 20.1.1
* Python version: 3.8.2
* OS: Linux
<!-- Feel free to add more information about your environment here -->
`pip freeze` output:
```
attrs==19.3.0
certifi==2020.4.5.2
chardet==3.0.4
docutils==0.16
flit==2.3.0
flit-core==2.3.0
idna==2.9
punq==0.4.1
pytoml==0.1.21
requests==2.23.0
urllib3==1.25.9
```
**Description**
<!-- A clear and concise description of what the bug is. -->
Installing a package using a PEP 517 backend with build isolation enabled results in an `install_requirements` call using the return value of `backend.get_requires_for_build_wheel()`, which generates and runs a `pip install` command. Constraints files passed to the outermost `pip install` command are not reflected in the generated command.
This means that, at least when using flit, a local install with build isolation will fail if it's relying on a constraints file to specify paths to dependencies that are only available locally.
(The other build backends I checked don't require the runtime requirements in the isolated environment. I brought this up in the flit repo first in https://github.com/takluyver/flit/issues/354)
**Expected behavior**
<!-- A clear and concise description of what you expected to happen. -->
Given two projects, a dependency and a dependent, with the dependent using flit, and the dependency not present in an index, the command `pip install -c path/to/constraints.txt path/to/dependent`, where the constraints file has a line like `name-of-dependency @ file:///absolute/path/to/dependency` should succeed.
**How to Reproduce**
<!-- Describe the steps to reproduce this bug. -->
1. Create a "dependency" project with a name not present in pypi
2. Create a "dependent" project that depends on the dependency, using flit
3. Create a `constraints.txt` file that at least contains a direct reference linking the name of the dependency to its absolute path
4 Run `pip install -c constraints.txt ./dependent`, assuming the constraints file and the project directories are next to each other
**Output**
```
$ ls
constraints.txt dependency_bleh dependent
$ cat constraints.txt
dependency_bleh @ file:///absolute/path/of/pwd/dependency_bleh
dependent @ file:///absolute/path/of/pwd/dependent
$ pip install -c constraints.txt ./dependent
Processing ./dependent
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... error
ERROR: Command errored out with exit status 1:
command: <venv>/bin/python3.8 <venv>/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-67rnvdf5/normal --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- dependency_bleh
cwd: None
Complete output (2 lines):
ERROR: Could not find a version that satisfies the requirement dependency_bleh (from versions: none)
ERROR: No matching distribution found for dependency_bleh
----------------------------------------
ERROR: Command errored out with exit status 1: <venv>/bin/python3.8 <venv>/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-67rnvdf5/normal --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- dependency_bleh Check the logs for full command output.
```
author:
url:https://github.com/mwchase
type:Person
name:mwchase
datePublished:2020-06-14T16:18:14.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:5
url:https://github.com/8439/pip/issues/8439
Person:
url:https://github.com/mwchase
name:mwchase
url:https://github.com/mwchase
name:mwchase
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:5
interactionType:https://schema.org/CommentAction
userInteractionCount:5
External Links {π}(3)
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- GSAP
- Lodash
- Typed.js
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net