Commit Graph

1958 Commits

Author SHA1 Message Date
Jacek Caban
712db1d962 virtualenv: Update to upstream v16.7.11.
Based on Miro HronĨok's and Patrick Laimbock's findings:
https://bugzilla.redhat.com/show_bug.cgi?id=1987713

Using upstream commit fb6e546cc1dfd0d363dc4d769486805d2d8f04bc.
2022-01-18 16:14:02 +01:00
Patrick Laimbock
41ff0c2652 python: Import Interable and Mapping from collections.abc. 2021-11-07 17:31:58 +01:00
Jacek Caban
47b539699d configure: Support delayload on llvm-mingw. 2020-11-30 13:44:54 +01:00
Dave Hunt
30094f773e Bug 1437593 - Vendor virtualenv 15.2.0; r=gps
MozReview-Commit-ID: 7DL7wU8eUHm

--HG--
extra : rebase_source : c50b07b619da144569573175158774f8e22d6bed

Signed-off-by: Jacek Caban <jacek@codeweavers.com>

(cherry-picked from commit 88d6e5e9c44d6cfb9962f74239fc17f51e325a16)
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2019-12-31 00:57:47 +01:00
Gregory Szorc
c81c5827b3 Bug 1295439 - Upgrade setuptools to 25.2.0; r=glandium
Should be a drop-in replacement.

MozReview-Commit-ID: 2ebRTXwCBfM

--HG--
rename : python/virtualenv/virtualenv_support/setuptools-20.3-py2.py3-none-any.whl => python/virtualenv/virtualenv_support/setuptools-25.2.0-py2.py3-none-any.whl
extra : rebase_source : d8cef816464fb494a8134967bf912d9dabe41b84

(cherry picked from commit 88d6e5e9c44d6cfb9962f74239fc17f51e325a16)
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2019-12-31 00:57:38 +01:00
Nathan Hakkakzadeh
ded5e9669d Bug 1100925 - Added modification for MinGW64 version of Python so it will have system modules. r=gps
Added a quick for MinGW64 then adds the default location of system modules to
sys.path.

MozReview-Commit-ID: IubUhpB3rOf

--HG--
extra : rebase_source : 95f2245fb254473fb9977b37b60f087c05a7eedc

(cherry picked from commit 9775d4ad15c428897c33191fe68886b7d2476a1d)
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2019-12-31 00:57:34 +01:00
Nathan Hakkakzadeh
45702290cc Bug 1100925 - Added site.py from virtualenv upstream. r=gps
This is going to be necessary for MSYS2 which needs a custom site.py since
the MinGW64 version of Python does not import the system packages.

MozReview-Commit-ID: EfHRmRSmvlV

--HG--
extra : rebase_source : 6ffbcda31318d3581ded3bf860bbd0db2eec8780

(cherry picked from commit f28bd15876fe9d52306852d3e69cdddde79d251e)
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2019-12-31 00:57:27 +01:00
Nathan Hakkakzadeh
5d3c226db2 Bug 1100925 - Virtualenv now copies a site.py file in its folder (if it exists) instead of using the hex string for site.py that is in its source code. r=gps
We need this to avoid weird site.py hacks to get msys2 to play nicely with virtualenv.

MozReview-Commit-ID: 9lJSo6MistO

--HG--
extra : rebase_source : 598f25a207dc4307ed531f4e4e5dcfb951ae8283

(cherry picked from commit 6a16b60f89ef5b38e33efabf63f7e30c1672b616)
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2019-12-31 00:57:20 +01:00
Nathan Hakkakzadeh
bf1a25c4a0 Bug 1100925 - Virtualenv no longer attempts to use symlinks when the os module does not have it. r=gps
Before, virtualenv would try to use symlinks based entirely on the value given by the options parser.

Unfortunately, some versions of Python cannot symlink (specifically the MinGW version of Python).

Now, virtualenv ensures the os module has the symlink funciton before attempting to use the symlink function.

MozReview-Commit-ID: DFJ59AaPNpB

--HG--
extra : rebase_source : 4a92c9cbfbfe205e18b890e100fe549d78cebc81

(cherry picked from commit 2608abcab568a9f705c7f519d9b30c01cc1790df)
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2019-12-31 00:57:02 +01:00
Nathan Hakkakzadeh
19113e8b2e Bug 1100925 - For whatever reason MinGW Python cannot import functools which is needed in the build process. r=gps
By placing the functools module in the REQUIRED_MODULES list, the environment will not throw an ImportError when the build systemimports functools.

MozReview-Commit-ID: 8DjzXqxvxXd

--HG--
extra : rebase_source : 47ceae1e8b852e0b8bf61f9b34cc953db42e393e

(cherry picked from commit 7394210aad55ad8b863205c1a1862c34783c4080)
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2019-12-31 00:56:53 +01:00
Nathan Hakkakzadeh
4ba789d827 Bug 1100925 - Added flags in virtualenv to differenciate between a native Windows version of Python and a MinGW64 version of Python running in msys2. r=gps
This is going to be necessary in the following commits to ensure that virtualenv has access to native libraries.

MozReview-Commit-ID: FwxOoCWnQMW

--HG--
extra : rebase_source : c4cf829231757b3dc2c5ca821c7248dc3fb0d763

(cherry picked from commit 57e72ee336754d5cabb9f53cb5dfca7f817c6a18)
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2019-12-31 00:56:48 +01:00
Gregory Szorc
3f8304ea8b Bug 1295439 - Upgrade pip to 8.1.2; r=glandium
Should be a drop-in replacement.

MozReview-Commit-ID: 5934X9tS29g

--HG--
rename : python/virtualenv/virtualenv_support/pip-8.1.1-py2.py3-none-any.whl => python/virtualenv/virtualenv_support/pip-8.1.2-py2.py3-none-any.whl
extra : rebase_source : 01d234565de37041f79f3f4498eec1d6fadfe005

(cherry picked from commit 6c01848d23ac94ca40431fbf4198123cb3d9f7f7)
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2019-12-31 00:56:41 +01:00
Gregory Szorc
0876ee4064 Bug 1259551 - Upgrade vendored virtualenv to 15.0.1; r=ted
While we're addressing virtualenv foo, let's ensure we are running
the latest version. This also pulls in newer versions of pip (8.1.1),
setuptools (20.3), and wheel (0.29.0).

MozReview-Commit-ID: G5uSy66Kd6u

--HG--
extra : rebase_source : 804f230adcf77335c79a93537d9623ac3836d9bf

(cherry picked from commit 4262e28d067edd239f96cb75a8280b91db23a79e)
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2019-12-31 00:56:28 +01:00
Jacek Caban
7b43ad1508 mozbuild: Use time.process_time() instead of time.clock().
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2019-12-31 00:56:23 +01:00
Jacek Caban
386a501a80 mozbuild: Explicitly specify utf8 file encoding. 2019-09-06 15:43:33 +02:00
Vincent Povirk
98fe7e2466 mozbuild: Various bytes/str fixes. 2019-09-06 15:43:33 +02:00
Vincent Povirk
63a05cbd73 mozbuild: Use bytes in BaseFile.copy. 2019-09-06 15:43:32 +02:00
Vincent Povirk
a05b2fb551 mozbuild: Encode content of GeneratedFile. 2019-09-06 15:43:32 +02:00
Vincent Povirk
064852f9b3 mozbuild: Open install.rdf as text. 2019-09-06 15:43:32 +02:00
Vincent Povirk
767f32d261 mozbuild: Open manifest files as text. 2019-09-06 15:43:31 +02:00
Vincent Povirk
71612a5078 configobj: Only try to decode bytes. 2019-09-06 15:43:31 +02:00
Vincent Povirk
4e754d0480 configobj: Run 2to3. 2019-09-06 15:43:31 +02:00
Vincent Povirk
c5816012cc mozbuild/mach_commands: Don't use bytes for environment variables. 2019-09-06 15:43:30 +02:00
Vincent Povirk
1c578144e9 mozbuild: Don't assume exceptions have a message attribute. 2019-09-06 15:43:30 +02:00
Vincent Povirk
3ef90abf81 mozbuild/compilation/warnings: Open json files as text. 2019-09-06 15:43:30 +02:00
Vincent Povirk
bdafb1c1d5 mozbuild: Various bytes vs str fixes. 2019-09-06 15:43:29 +02:00
Vincent Povirk
6db7de6db5 mozbuild.jar: Always use struct_time for timestamps. 2019-09-06 15:43:29 +02:00
Vincent Povirk
d17efaf073 buildlist: Open file as text. 2019-09-06 15:43:20 +02:00
Vincent Povirk
e9c4452ca9 python/mozbuild: Use text modes in preprocessor. 2019-09-06 15:43:18 +02:00
Vincent Povirk
07ce014820 python/mozbuild: Use str instead of bytes in manifest. 2019-09-06 15:43:16 +02:00
Vincent Povirk
7547326b1f python/mozbuild: Avoid bytes in recursivemake. 2019-09-06 15:43:16 +02:00
Vincent Povirk
f341c9ce4e python/mozbuild: Return str by default in FileAvoidWrite.getvalue. 2019-09-06 15:43:15 +02:00
Vincent Povirk
2fd9f0aa1a python/mozbuild: Always open file as binary in FileAvoidWrite.
The value to write is always bytes.
2019-09-06 15:43:15 +02:00
Vincent Povirk
d246d32a6c python/mozbuild: Add required argument for new gyp. 2019-09-06 15:43:14 +02:00
Vincent Povirk
6a54b2e55e python/mozbuild: Avoid byte strings in gyp_reader. 2019-09-06 15:43:14 +02:00
Vincent Povirk
b54149d2e1 python/mozbuild: Remove use of cmp in alphabetical_sorted. 2019-09-06 15:43:13 +02:00
Vincent Povirk
d6279970c3 python/mozbuild: Remove use of cmp in Path. 2019-09-06 15:43:13 +02:00
Vincent Povirk
3bc47e1dc1 python/mozbuild: Avoid bytes in reader. 2019-09-06 15:43:12 +02:00
Vincent Povirk
73b44d92fd python/mozbuild: Require source code in Sandbox to be str. 2019-09-06 15:43:12 +02:00
Vincent Povirk
566a711f5a python/mozbuild: Avoid messing with __init__ in TypedTuple. 2019-09-06 15:43:12 +02:00
Vincent Povirk
19b3b3ca90 python/mozbuild: Remove use of file() and universal newline mode. 2019-09-06 15:43:09 +02:00
Vincent Povirk
36a47ef1e4 mozbuild: Set Python requirement to 3.4. 2019-09-06 15:43:09 +02:00
Vincent Povirk
97f585874a python/mozbuild: Open last_log.json as text. 2019-09-06 15:43:07 +02:00
Vincent Povirk
e8dcd19e88 python/mozbuild: Don't put a byte string in the environment. 2019-09-06 15:43:07 +02:00
Vincent Povirk
317e728854 python/mach: No unbound methods in Python 3. 2019-09-06 15:43:07 +02:00
Vincent Povirk
b62f00da3d python/mozbuild: Replace StringTypes with str. 2019-09-06 15:43:06 +02:00
Vincent Povirk
972ca45371 python/mozbuild: Run 2to3. 2019-09-06 15:43:06 +02:00
Vincent Povirk
8d4bad5455 python/which: Run 2to3. 2019-09-06 15:43:06 +02:00
Vincent Povirk
5a276bcf62 python/mach: Replace use of UUID.get_hex(). 2019-09-06 15:43:05 +02:00
Vincent Povirk
436e5ea2d9 python/mach: Don't use byte string for module name. 2019-09-06 15:43:05 +02:00