Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#2383 closed task (fixed)

git.osgeo.org/gitea giving warning when pushing -upgrade pip and setuptools

Reported by: robe Owned by: sac@…
Priority: normal Milestone: Sysadmin Contract 2019-II
Component: SysAdmin Keywords:
Cc:

Description

As noted on postgis

https://trac.osgeo.org/postgis/ticket/4580

When pushing to gitea, it is now showing a warning:

Delta compression using up to 12 threads
Compressing objects: 100% (28/28), done.
Writing objects: 100% (29/29), 11.78 KiB | 1.07 MiB/s, done.
Total 29 (delta 27), reused 1 (delta 1)
remote: Warning: Detected setuptools version 5.5.1. The environment variable 'PKG_RESOURCES_CACHE_ZIP_MANIFESTS' must be set to avoid significant performance degradation.
remote: Thanks for letting us know
To https://git.osgeo.org/gitea/postgis/postgis.git
   1844af14a..de298f1b4  master -> master

It's still unclear to me why gitea's git is affected by python. I tried setting that setting in apache/etc/envvars as suggested by note and restarting apache on tracsvn-dev instance on osgeo4 which has the same issue. That did now help.

However upgrading setup tools did seem to do the trick

pip install -U setuptools

I need to confirm that's all that is needed though as I was fussing with configs.

Change History (2)

comment:1 by robe, 4 years ago

Resolution: fixed
Status: newclosed
Summary: git.osgeo.org/gitea giving warning when pushinggit.osgeo.org/gitea giving warning when pushing -upgrade pip and setuptools

okay I forgot that in dev I had upgraded that to trac 1.2.5, which required me to upgrade pip as well. So the new setup tools couldn't be upgraded without first upgrading pip.

So steps were:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
pip install -U setuptools

which yielded the following:

Installing collected packages: pip, wheel
  Found existing installation: pip 1.5.6
    Uninstalling pip-1.5.6:
      Successfully uninstalled pip-1.5.6
Successfully installed pip-19.3.1 wheel-0.33.6
Installing collected packages: setuptools
  Found existing installation: setuptools 5.5.1
    Uninstalling setuptools-5.5.1:
      Successfully uninstalled setuptools-5.5.1
Successfully installed setuptools-41.6.0

comment:2 by robe, 4 years ago

Milestone: Sysadmin Contract 2019-II
Note: See TracTickets for help on using tickets.