Commit Graph

11 Commits

Author SHA1 Message Date
Sam Yaple 4ff506ae5c Remove PYTHON3
The python2 is long dead and the PYTHON3 flag has been noop for a while.

Change-Id: Ia7be53e84090cc8b80e1dd5753ba1460ff454851
Related-Id: I3f4f60756887ad07229cf522803b30d4e16463cd
2022-09-21 21:28:12 -04:00
Andrii Ostapenko 68c3d9177f Pin virtualenv to 20.7.2
Current latest 20.8.0 have updated embedded pip 21.2.4 and setuptools
58.4.8 incompatible with some of constrainted packages.

Change-Id: I81ec48dbd123e6f24ff05d64906d47c31ae693f7
2021-09-20 19:40:29 +00:00
Andrii Ostapenko c19db02c6d
Fix setup_pip.sh and remove xenial based builds
Also fix monasca bindep.

Change-Id: I2b5b1a31165e98ce71380824e8f57af8906701c6
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2021-07-29 17:27:51 -06:00
Andrii Ostapenko c94a86c328 Add support for virtualenv > 20
Virtualenv > 20 no longer supports --no-site-packages option and does
not create no-global-site-packages.txt flag file.
Changing pyvenv.cfg instead to achieve the same.

Change-Id: I1023d6b2af4421ed014ba5b7c98e57294c5d46d9
2020-02-24 21:53:31 -06:00
Chris Hoge ae6db7a387 Fix broken symlinks from virtualenv 16.4.0 update
The virtualenv 16.4.0 updates fixes the handling of creating
symlinks of libraries to existing installations. Previously,
virtualenv would copy existing libraries into the virtualenv
making nested environments possible without retaining the
"parent" virtualenv. Now virtualenv builds a symlink chain,
which means we need to preserve the bootstrap virtualenv that
gives us an up-to-date installation of pip and virtualenv.

As distributions update their default virtualenv installations,
we might be able to use the --always-copy flag to stop using
symlinks and just copy dependencies over directly. However, the
virtualenv that ships with CentOS has a bug that causes the use
of that flag to fail, meaning as of right now we can't use it
to boostrap pip.

This patch moves the boostrap virtualenv from /tmp/venv, where
it is deleted in the build process, to /var/lib/pipboostrap,
where the symlink chain from

/var/lib/openstack -> /var/lib/pipbootstrap -> /usr/lib

will be remain unbroken.

Change-Id: I99124c2cfeb6ba7468a034ab510071eb67d98d66
2019-02-12 22:01:45 +00:00
Chris Hoge 432503259f Fix Loci build by temporarily pinning virtualenv
The 16.4.0 release of virtualenv[1] breaks Loci builds by changing the
handling of symlinks[2]. This patch pins the virtualenv version until
a more robust and permanent fix can be implemented

[1] https://virtualenv.pypa.io/en/stable/changes/#v16-4-0-2019-02-09
[2] http://lists.openstack.org/pipermail/openstack-discuss/2019-February/002592.html

Change-Id: I15fe76e0e3b027dd207010473e35a55b288c46e6
2019-02-12 01:05:14 +00:00
Thippaiah, Balachandra (bt061u) 88df24b24d Add PIP_WHEEL_ARGS and use PIP_ARGS for pip install
This ps adds new argument PIP_WHEEL_ARGS
 - allows additional parameters for pip wheel
 - defaults to PIP_ARGS
Also use PIP_ARGS with all pip installs

Useful when building requirements image with local pip mirrors

Change-Id: I43c6b921467150509d013554aaa1983f30abedff
2018-11-12 10:44:46 -05:00
Chris Hoge d0ef425ef6 Clean up comment style and identify bugs and workarounds
Cleans up the comment style to remove author names and clarify
the comment as it relates to the code. Using the NOTE (NAME):
format is redundant and takes away attention from the purpose
of documenting why an action is being taken.

Also updates status of TODO and FIXME items, including removing
code was a workaround fixed by a recent patch.

Change-Id: I2e087be1e204c618d1dbe499b3f69eae34ce656f
2018-10-25 11:33:25 -07:00
Sam Yaple 2e2f31c5ea Add python3 support
Not all projects support python3 yet (swift being the worst offender)
and some only have partial support. Nova doesnt support python3 with xen
yet, but it does for everything else.

With this patch a full python3 deploy of openstack *should* be possible.
For now, at least it all builds.

Change-Id: Id03bbae1063b21e949085a3ef8f8c7534d2db3ff
2017-10-28 09:32:43 -04:00
Sam Yaple 1d7787eff6 Adjust the way the venv is built
It seems a newer package upstream that neutron depends on, depends on a
newer version of argparse to exist in the venv. Because of the way we
were creating the venv before, sometimes packages would not get
installed in the venv because they existed on the host. This was causing
problems for the pip requirements list build process. This patchset
relieves the issues found and hopes to prevent this type of breakage in
the future.

Change-Id: Ie52b8b8707ed5f9306adc78c7b50b1f28d634823
2017-10-14 20:35:21 -04:00
Sam Yaple e3d41e874b Use infra mirrors
We have to stop pinning Docker because upstream only mirrors the latest
version. Hopefully this won't turn into an issue.

Change-Id: I33bb9527cf3d8718361d84b1efff62426d7b711b
2017-10-09 02:27:33 -04:00