Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terrifying package installing text #3

Closed
kwazzi-jack opened this issue Mar 2, 2021 · 3 comments
Closed

Terrifying package installing text #3

kwazzi-jack opened this issue Mar 2, 2021 · 3 comments
Assignees

Comments

@kwazzi-jack
Copy link
Owner

I've only tried this with the venv within kal-cal, but when I run:

pip3 install kal-cal

I get the following huge wall of text from trying to download require packages:

Processing /home/brian/Code/kal-cal
Requirement already satisfied: codex-africanus==0.2.10 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (0.2.10)
Requirement already satisfied: dask>=2021.1.0 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (2021.1.0)
Requirement already satisfied: dask-ms>=0.2.6 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (0.2.6)
Requirement already satisfied: llvmlite==0.35.0 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (0.35.0)
Requirement already satisfied: matplotlib>=3.3.4 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (3.3.4)
Requirement already satisfied: numba>=0.52.0 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (0.52.0)
Requirement already satisfied: numpy>=1.19.5 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (1.19.5)
Requirement already satisfied: astro-tigger>=1.5.0 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (1.5.0)
Requirement already satisfied: astro-tigger-lsm>=1.6.0 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (1.6.0)
Requirement already satisfied: astropy>=4.1 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (4.1)
Requirement already satisfied: pytest>=6.2.2 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (6.2.2)
Requirement already satisfied: pytest-forked>=1.3.0 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (1.3.0)
Requirement already satisfied: pytest-xdist>=2.2.0 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (2.2.0)
Requirement already satisfied: python-casacore>=3.3.1 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (3.3.1)
Requirement already satisfied: PyYAML>=5.3.1 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (5.3.1)
Requirement already satisfied: scipy>=1.5.4 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (1.5.4)
Requirement already satisfied: simms>=1.2.0 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (1.2.0)
Requirement already satisfied: Tigger>=0.1.1 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (0.1.1)
Requirement already satisfied: xarray>=0.16.2 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (0.16.2)
Requirement already satisfied: tqdm>=4.56.0 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (4.56.0)
Requirement already satisfied: packratt==0.1.2 in ./venv/lib/python3.6/site-packages (from kal-cal==0.0.1) (0.1.2)
Requirement already satisfied: decorator in ./venv/lib/python3.6/site-packages (from codex-africanus==0.2.10->kal-cal==0.0.1) (4.4.2)
Requirement already satisfied: appdirs>=1.4.3 in ./venv/lib/python3.6/site-packages (from codex-africanus==0.2.10->kal-cal==0.0.1) (1.4.4)
Requirement already satisfied: requests==2.*,>=2.23.0 in ./venv/lib/python3.6/site-packages (from packratt==0.1.2->kal-cal==0.0.1) (2.25.1)
Requirement already satisfied: jsonschema==3.*,>=3.2.0 in ./venv/lib/python3.6/site-packages (from packratt==0.1.2->kal-cal==0.0.1) (3.2.0)
Requirement already satisfied: importlib-metadata in ./venv/lib/python3.6/site-packages (from jsonschema==3.*,>=3.2.0->packratt==0.1.2->kal-cal==0.0.1) (3.4.0)
Requirement already satisfied: setuptools in ./venv/lib/python3.6/site-packages (from jsonschema==3.*,>=3.2.0->packratt==0.1.2->kal-cal==0.0.1) (53.0.0)
Requirement already satisfied: six>=1.11.0 in ./venv/lib/python3.6/site-packages (from jsonschema==3.*,>=3.2.0->packratt==0.1.2->kal-cal==0.0.1) (1.15.0)
Requirement already satisfied: attrs>=17.4.0 in ./venv/lib/python3.6/site-packages (from jsonschema==3.*,>=3.2.0->packratt==0.1.2->kal-cal==0.0.1) (20.3.0)
Requirement already satisfied: pyrsistent>=0.14.0 in ./venv/lib/python3.6/site-packages (from jsonschema==3.*,>=3.2.0->packratt==0.1.2->kal-cal==0.0.1) (0.17.3)
Requirement already satisfied: idna<3,>=2.5 in ./venv/lib/python3.6/site-packages (from requests==2.*,>=2.23.0->packratt==0.1.2->kal-cal==0.0.1) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in ./venv/lib/python3.6/site-packages (from requests==2.*,>=2.23.0->packratt==0.1.2->kal-cal==0.0.1) (2020.12.5)
Requirement already satisfied: chardet<5,>=3.0.2 in ./venv/lib/python3.6/site-packages (from requests==2.*,>=2.23.0->packratt==0.1.2->kal-cal==0.0.1) (4.0.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./venv/lib/python3.6/site-packages (from requests==2.*,>=2.23.0->packratt==0.1.2->kal-cal==0.0.1) (1.26.3)
Requirement already satisfied: configparser in ./venv/lib/python3.6/site-packages (from astro-tigger>=1.5.0->kal-cal==0.0.1) (5.0.1)
Requirement already satisfied: astlib in ./venv/lib/python3.6/site-packages (from astro-tigger>=1.5.0->kal-cal==0.0.1) (0.11.4)
Requirement already satisfied: future in ./venv/lib/python3.6/site-packages (from astro-tigger-lsm>=1.6.0->kal-cal==0.0.1) (0.18.2)
Requirement already satisfied: astro-kittens in ./venv/lib/python3.6/site-packages (from astro-tigger-lsm>=1.6.0->kal-cal==0.0.1) (1.4.3)
Requirement already satisfied: toolz>=0.8.2 in ./venv/lib/python3.6/site-packages (from dask>=2021.1.0->kal-cal==0.0.1) (0.11.1)
Requirement already satisfied: python-dateutil>=2.1 in ./venv/lib/python3.6/site-packages (from matplotlib>=3.3.4->kal-cal==0.0.1) (2.8.1)
Requirement already satisfied: pillow>=6.2.0 in ./venv/lib/python3.6/site-packages (from matplotlib>=3.3.4->kal-cal==0.0.1) (8.1.0)
Requirement already satisfied: cycler>=0.10 in ./venv/lib/python3.6/site-packages (from matplotlib>=3.3.4->kal-cal==0.0.1) (0.10.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in ./venv/lib/python3.6/site-packages (from matplotlib>=3.3.4->kal-cal==0.0.1) (2.4.7)
Requirement already satisfied: kiwisolver>=1.0.1 in ./venv/lib/python3.6/site-packages (from matplotlib>=3.3.4->kal-cal==0.0.1) (1.3.1)
Requirement already satisfied: iniconfig in ./venv/lib/python3.6/site-packages (from pytest>=6.2.2->kal-cal==0.0.1) (1.1.1)
Requirement already satisfied: toml in ./venv/lib/python3.6/site-packages (from pytest>=6.2.2->kal-cal==0.0.1) (0.10.2)
Requirement already satisfied: packaging in ./venv/lib/python3.6/site-packages (from pytest>=6.2.2->kal-cal==0.0.1) (20.9)
Requirement already satisfied: pluggy<1.0.0a1,>=0.12 in ./venv/lib/python3.6/site-packages (from pytest>=6.2.2->kal-cal==0.0.1) (0.13.1)
Requirement already satisfied: py>=1.8.2 in ./venv/lib/python3.6/site-packages (from pytest>=6.2.2->kal-cal==0.0.1) (1.10.0)
Requirement already satisfied: zipp>=0.5 in ./venv/lib/python3.6/site-packages (from importlib-metadata->jsonschema==3.*,>=3.2.0->packratt==0.1.2->kal-cal==0.0.1) (3.4.0)
Requirement already satisfied: typing-extensions>=3.6.4 in ./venv/lib/python3.6/site-packages (from importlib-metadata->jsonschema==3.*,>=3.2.0->packratt==0.1.2->kal-cal==0.0.1) (3.7.4.3)
Requirement already satisfied: execnet>=1.1 in ./venv/lib/python3.6/site-packages (from pytest-xdist>=2.2.0->kal-cal==0.0.1) (1.8.0)
Requirement already satisfied: apipkg>=1.4 in ./venv/lib/python3.6/site-packages (from execnet>=1.1->pytest-xdist>=2.2.0->kal-cal==0.0.1) (1.5)
Collecting argparse
  Using cached argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Requirement already satisfied: pandas>=0.25 in ./venv/lib/python3.6/site-packages (from xarray>=0.16.2->kal-cal==0.0.1) (1.1.5)
Requirement already satisfied: pytz>=2017.2 in ./venv/lib/python3.6/site-packages (from pandas>=0.25->xarray>=0.16.2->kal-cal==0.0.1) (2020.5)
Building wheels for collected packages: kal-cal
  Building wheel for kal-cal (setup.py) ... done
  Created wheel for kal-cal: filename=kal_cal-0.0.1-py3-none-any.whl size=30288 sha256=b66059276c5496420acfd1a8d97ea2ceacc0669dd941b642c7142af1690bb3c0
  Stored in directory: /home/brian/.cache/pip/wheels/10/85/df/5061ed174f6ec3a87284f98200d4793f5559069ca2532796fe
Successfully built kal-cal
Installing collected packages: argparse, kal-cal
  Attempting uninstall: kal-cal
    Found existing installation: kal-cal 0.0.1
    Uninstalling kal-cal-0.0.1:
      Successfully uninstalled kal-cal-0.0.1
Successfully installed argparse-1.4.0 kal-cal-0.0.1

I realized this might be overkill for requirements as I ran pip3 freeze > requirements.txt for the requirements list. I'm not too sure how python handles package dependencies so I just listed all as required. Any advice on how to mitigate this so its something pretty like:

Installing collected packages: numpy, matplotlib, dask, kal-cal # and so on
  Attempting uninstall: kal-cal
    Found existing installation: kal-cal 0.0.1
    Uninstalling kal-cal-0.0.1:
      Successfully uninstalled kal-cal-0.0.1
Successfully installed argparse-1.4.0 kal-cal-0.0.1, numpy, matplotlib, dask # and so on
@JSKenyon
Copy link
Collaborator

JSKenyon commented Mar 3, 2021

This is not something to be worried about. All that information is important to an installing user (important to understand how your environment is changing). If you/a user really dislike it, you can use the -q flag with pip to install in quiet mode. I would not recommend this.

In terms of figuring out the dependencies you actually need, pip will resolve it all for you if you just specify the packages you actually use (i.e. you have an import statement for them). So you don't need to worry about the dependencies of codex-africanus for example - simply having codex-africanus in your requirements will ensure its dependencies are installed.

@JSKenyon
Copy link
Collaborator

JSKenyon commented Mar 3, 2021

For what it is worth, there is some interest in having the option to suppress these messages (see pypa/pip#6119) but it doesn't seem to exist yet.

@kwazzi-jack kwazzi-jack self-assigned this Jul 16, 2021
@kwazzi-jack
Copy link
Owner Author

Thank you! I see now its not a main concern and will deal with it later, but I will have a look at the pypa link!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants