96 Commits

Author SHA1 Message Date
Alexey Pavlov 18dbeae777 python3: Update to 3.6.4 2017-12-21 11:17:44 +03:00
Christoph Reiter 65d2264f48 python3: Disable broken gdbm module (#3064)
gdbm is broken and as a result breaks dbm/shelve (dbm.open fails)
Don't include it so the dbm.dumb backend is used instead,
like with the official CPython build.
2017-10-20 09:31:35 +03:00
Christoph Reiter aebcb31d18 python3: Update to 3.6.3 (#3012) 2017-10-05 07:16:35 +03:00
K.Takata 7b9be58500 python2,3: Update iscygpty (#2836)
Fix potential buffer overflow.
2017-09-03 21:45:18 +03:00
Christoph Reiter eaa55b62c2 python3: Use is_cygpty() to detect a terminal; disable readline with a real Windows console (#2675)
CPython uses isatty() to detect a terminal and change some settings
like line buffering and interactive mode. Use is_cygpty() to make
this also work under mintty.
See https://github.com/Alexpux/MINGW-packages/issues/2645

This also removes the bash script which forced the interactive mode
when python3 was started without arguments. This is no longer needed as
Python now detects the terminal output and does this automatically.

Also use is_cygpty() to detect when not under mintty and disable the readline
module there, as using it breaks input of certain characters and
leads to errors on shutdown when it tries to save the readline history.
(The readline module is not available in the official Python build)
See https://github.com/Alexpux/MINGW-packages/issues/2656
2017-08-14 13:41:05 +03:00
Christoph Reiter c08a79ec63 python3: Update to 3.6.2 (#2700) 2017-08-13 00:26:27 +03:00
Christoph Reiter 3f6c286d6a python3: Make multiprocessing.Queue work; Add some tests. Fixes #837 (#2619)
With non-mingw builds POSIX_SEMAPHORES_NOT_ENABLED is not enabled and
sem_unlink is a no-op. Change it to always be provided on Windows instead.

This adds a minimal test suite which makes it easier to catch regressions
in the future for common MSYS2 related bugs.
2017-06-26 07:02:42 +03:00
Christoph Reiter 9d5fdcc956 python3: Update to 3.6.2rc1 (#2599) 2017-06-19 11:59:14 +03:00
Christoph Reiter 9757046077 python3: Update to 3.6.1 (#2587)
* python3: Update to 3.6.1

The patches starting with 16 are new to fix the build.
Some no longer relevant patches were dropped, the rest is just refreshed.

* Bump pkgrel of all packages containing Python 3 bytecode/extensions.

The package list was generated using:
    pkgfile.exe -R mingw64 -r "cpython.*\\.(py[cod]|dll)"

* lensfun: Add cmake to makedepends

* numpy: Don't hardcode the Python version

* blender: rebuild for new Python

* boost: Don't hardcode Python versions; rebuild

* pillow: Don't hardcode Python version; rebuild

* python-dateutil: Don't hardcode Python versions

* sip: Don't hardcode Python versions

* pyqt4: Don't hardcode Python versions; rebuild

* pyqt5: Don't hardcode Python versions; rebuild

* opencv: Update Python3 version in patch
2017-06-15 17:40:51 +03:00
Alexey Pavlov be533f846c python3: Rebuild. 2017-04-10 08:19:39 +03:00
Nikolay Polyarniy 142833ed75 python3: segfault fix in GetTickCount64 (#2337)
On Windows XP SP3 there is no GetTickCount64, current workaround for this problem has a bug: ```GetProcAddress(hKernel32, "GetTickCount64")``` returns ```NULL```, but next if compares result with ```-1``` and so it tries to call function by ```NULL``` address. This leads to segfault.
2017-04-10 07:30:20 +03:00
Alexey Pavlov 8081fcd018 python3: Update to 3.5.3 2017-02-27 09:39:55 +03:00
Alexey Pavlov a911df0cf0 python2,3: Rebuild. Fix patches checksum 2016-11-07 14:53:05 +03:00
Andrew Dutcher 40fca6cbff Python: Fixed patch for distutils.util.change_root to account for case when neither path has a drive letter (#1899) 2016-11-06 20:26:44 +03:00
J. Peter Mugaas 184d179111 Readline (#1872)
* readline - 7.0 - Update to latest veersion - NOTE:  Will probably break stuff - rebuild what depends upon it

Rekeyed patch for new version and ifdef'ed out chown calls if not
available

* Rebuild some packages that depend upon readline for good measure
2016-11-01 07:41:36 +03:00
Alexey Pavlov db111d9956 python3: Rebuild 2016-09-24 09:18:47 +03:00
Alexey Pavlov e9c507d51e python3: Update to 3.5.2 2016-07-12 14:49:26 +03:00
Alexey Pavlov e31dc38cb7 python{2,3}: Rebuild due openssl API changes 2016-03-04 09:51:27 +03:00
Viktor Szakats e32a40cc92 switch to sha256 checksums
* upgrade some broken packages
* correct some broken urls/checksums
* use secure urls where possible
* update PKGBUILD templates
* remove line-ending whitespace
* minor typos/fixes

Remaining md5sums either didn't download or
didn't pass checksum tests.
2016-02-25 20:55:26 +01:00
Viktor Szakats e7111647e2 use secure urls
* follow some redirects
2016-02-23 10:26:29 +01:00
Alexey Pavlov 439909b051 python3: Fix last patch 2016-01-11 15:59:54 +03:00
Alexey Pavlov 4c83a0763b python3: Move patch to proper place 2016-01-11 15:04:54 +03:00
Ray Donnelly 51ca502b53 python2 + 3 + numpy: Various updates and fixes
* Update python2 to 2.7.11
* Update numpy to 1.10.2 (and number the patches).
* New python2 + 3 patch so that sys.version returns
  something more similar to normal CPython so that
  get_build_architecture in distutils msvccompiler.py
  returns the right thing (NumPy uses it so there's
  every chance other things will too).
2016-01-02 21:45:58 +00:00
Ray Donnelly 34e94f0134 python2 + 3: distutils spawn fix for nt
Implement _nt_quote_args using subprocess module's
list2cmdline since that handles all the tricky quoting
logic properly while the previous implementation was
not capable of handling anything more complicated than
the most basic commandline arguments and those with
spaces (so no tabs, or double quotes etc).

A specific example of trouble this caused was on MSYS2
when building the gobject-introspection part of GEGL 0.3.4
and a macro of -DG_LOG_DOMAIN="GEGL"-__FILE__ was passed
to the C compiler. From distutils perspective, the final
call ended up as:

gegl-introspection-module =
    Extensions('gegl-introspection',
               define_macros=
               [('G_LOG_DOMAIN', '"GEGL-"__FILE__')])

This *will* cause trouble in software that special-cased
Windows. An example existed in Python's own setup.py when
building the sqlite module.
The MODULE_NAME define was set to '"sqlite3"' for everything
else and to '\\"sqlite3\\"' for Windows. This commit removes
this special-casing, obviously!

The bad-old-implementation has existed for so long now that
everyone's hacked around it, which means that it's probably
too late for this change, so this means in the long-term,
this commit will go one of three ways:

1. It'll stay in and we'll fix everything up that's broken.
pip and C extensions will screw up badly here.

2. I implement a two-pass scheme where I try both the old
way and the new way for things that fail on first attempt.

3. I remove this altogether, and hack up GEGL like everything
else has been hacked up, lesson learnt.

I'm leaning towards 2 at present.

Either way, I need to figure out why GEGL was hanging before
this change as that was less than useful. Some good came out
of it; we can build debuggable python2 and py-bt works now
too!

Also renamed python-gdb.py to python_gdb.py
2016-01-02 02:51:15 +00:00
Alexey Pavlov e9ddef86a1 python3: Fix path separators under cmd/shell 2015-10-08 13:19:09 +03:00