59 Commits

Author SHA1 Message Date
Osyotr
3ccf424292
[python3] Fix venvlauncher patch (#42414) 2024-12-02 15:44:24 -08:00
Osyotr
7dcb4ca95b
[python3] Update port to 3.11.10, tools to 3.12.7 (#41232) 2024-10-17 22:25:41 -07:00
Alexander Neumann
c82f746672
[python3] add features for readline and extensions (#41183) 2024-09-30 16:43:00 -07:00
gerard-ryan-immersaview
6db51d86a9
[vcpkg_replace_string] warn unchanged by call (#34719)
If a call to `vcpkg_replace_string` makes no changes i.e doesn't
effectively replace a string, A warning is logged.

This should also help identify ports that no longer need these calls to
fix things in `.pc` files etc.
2024-06-19 14:07:05 -07:00
Alexander Neumann
2324733d55
[python3] add vcpkg_get_vcpkg_installed_python (#38929) 2024-06-17 11:36:07 -07:00
Osyotr
e338d66dcd
[python3, pybind11] Move Py_DEBUG to python, and use python from vcpkg (#37758)
Alternative to #36585
Fixes #22743
Fixes #34338
Fixes #34678

---------

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Co-authored-by: Cheney-Wang <850426846@qq.com>
Co-authored-by: Osyotr <8740768+Osyotr@users.noreply.github.com>
2024-05-07 14:34:31 -07:00
Alexander Neumann
116bfbc5d3
[python3] Fix missing _ when discovering internal FindPython vars. (#37354) 2024-03-11 20:32:52 -07:00
Osyotr
e76d097722
[python3] Update to 3.11.8 (#36755)
Fixes #36736

Changes: https://github.com/python/cpython/compare/v3.11.5...v3.11.8
2024-03-05 01:29:47 -08:00
Matthias Kuhn
163fe24a8d
Fix python include path for non-windows (#36707) 2024-02-14 23:07:00 -08:00
Alexander Neumann
915ebafa4b
[python3] Fix lld-link and add port config for python site (#36245)
* [python3] remove duplicated symbols for lld-link and add port config

* v db
2024-01-19 12:30:11 -08:00
Cheney Wang
0da40a8b53
[python3] Add a warning message for installing autoconf automake and autoconf-archive (#35548)
* [python3] Add a warning message for installing autoconf automake and autoconf-archive

* Apply suggestion
2023-12-12 01:51:55 -08:00
Robert Coup
8e745df694
python3: disable tkinter module on posix (#34998)
When running with VCPKG_FORCE_SYSTEM_BINARIES=ON (linux/arm64) then the Python
build will pick up libtk and attempt to build the tkinter module, linking to the
system library and causing either a build failure or an external link
dependency. Fix this by explicitly disabling it as we do for curses.
2023-11-10 11:30:23 -08:00
Alexander Neumann
1802d39436
[python3] adjust sysconfig include dir to match vcpkg layout (#34888)
* [python3] modify sysconfig include dir for vcpkg layout

* v db
2023-11-06 10:59:04 -08:00
Osyotr
e4b4469611
[python3] Update to 3.11.5 (#33477) 2023-09-07 13:12:03 -07:00
Kai Pastor
edd3db2e3b
[libffi] Use upstream's build system (#33203)
* [libffi] Use upstream's build system

* WIP [skip actions]

* WIP [skip actions]

* WIP [skip actions]

* Finish libffi

* Fix downstream lookup

* Update versions

* [gobject-introspection] Require libffi

* Move DLLs to bin

* [libffi] Usage

* Restore azp

* Fix typo

* CI
2023-08-24 12:51:20 -07:00
jalegido
ca7b1b15f5
Python3 compiling triplet x64-windows (#33232)
* Fix python3 x64-windows

* x-add-version --all

* Update ports/python3/portfile.cmake

Replace tabs by spaces

Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>

* versioning

---------

Co-authored-by: jjll <jjll@gmv.com>
Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>
2023-08-18 12:04:24 -07:00
Osyotr
35fbd749bf
[python3] Don't set PYTHON_FOR_REGEN for host builds (#33132)
We don't do any regen, so this can be skipped

Co-authored-by: Osyotr <8740768+Osyotr@users.noreply.github.com>
2023-08-14 17:33:57 -07:00
Alexander Neumann
27276976ca
[3fd|python3] switch to vcpkg-msbuild (#33026)
* [python3] switch to vcpkg-msbuild

* v db

* update 3fd to use vcpkg-msbuild as a sanity check

* Fix windows cross builds

* v db

* arm needs another patch

* v db

* 3fd uwp msbuild_install

* v db
2023-08-09 10:29:22 -07:00
Osyotr
c6928dfb9e
[python3] Update to 3.11.4 (#31727)
* [python3] Update to 3.11.3

* Force set PythonForBuild on windows

* Set LD_LIBRARY_PATH on unix

* Always use vcpkg_find_acquire_program(PYTHON3) on windows

* Remove LD_LIBRARY_PATH shenanigans

* [vtk] Parse python version from include folder

* Fix static builds on windows

* Pass --with-build-python on unix

* [omniorb] Fix python version in patch

* Resurrect rpath patch

* [python3] fix usage

* [gobject-introspection] don't hardcode python version

* Update vcpkg_find_aquire_program(PYTHON3)
This is also required for gobject-introspection

* [paraview] don't hardcode python version

* [vtk-dicom] don't hardcode python version

* Update python in vcpkgTools.xml

* Fix host arch detection in vcpkg_find_acquire_program(PYTHON3)

* [libpq] Don't hardcode python version

* [shiva] Don't pass python variables

* [vcpkg-get-python-packages] Delete unused file, update hardcoded python version

* [python3] update to 3.11.4

* [omniorb] Use PREPEND in vcpkg_add_to_path
So that python from vcpkg is picked before system python

* libpq quickfix

* re-fix libpq

* fix vcpkg-get-python-packages

* Make windows 7 patch compatible with unix builds

* Copy pyd files to bin
Also fixes copying files that do not belong to current build tree

* Fix static builds

* Speculatively fix osx regression

* Fix omniorb on unix

* [gobject-introspection] fix windows builds

* [vtk] Update vendored copy of mpi4py for python 3.11 support

* [mdl-sdk] Fix python

* [gobject-introspection] fix the fix of a fix...

* Update versions

* Undo changes in gobject-introspection and vcpkg_find_aquire_program(PYTHON3)

---------

Co-authored-by: root <root@DESKTOP-UIPL9V8>
2023-08-07 13:19:53 -07:00
MonicaLiu
f84c18b6a5
[python3] Install the debug version of the files *_d.pyd (#32297) 2023-07-26 11:11:05 -07:00
jim wang
0a3bc3d255
[python3] Fix distutils path (#30822)
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2023-04-26 11:51:50 -07:00
Robert Coup
d2b8d93276
python3: libcrypt doesn't need to be a dependency of libpython (#28887)
Fixed upstream in Python3.11 via https://github.com/python/cpython/issues/89596

Backport here to Python3.10 so libpython doesn't have a needless system
dependency on libcrypt (which is different on Linux between RH-based and
Debian-based distros too).
2023-01-18 12:32:55 -08:00
autoantwort
4f43c4dfca
[python3] force disable curses (#28751) 2023-01-08 21:41:19 -08:00
autoantwort
94780282ac
[Python3] Revert "Python3 cross build support" (#28468)
This reverts commit 1937b15.
2022-12-27 00:57:08 -08:00
rinechran
1937b15357
[Python3] cross build support (#27830)
* [python3] Python3 cross support

* [python3] update python3 port versions

* [python3] : add option when cross build

* [python3] port-verionsing

* python3 : port-version to change 1

* [python3] versioning

* [python3] change baseline update

* [python3] git tree change

* [python3] port-version change

* [python] version 2
2022-12-15 11:49:36 -08:00
xiaozhuai, Weihang Ding
cb76ac9e92
[expat] Fix expat msvc link static crt (#27948)
* Fix expat msvc link static crt

* update port version
2022-11-23 10:12:44 -08:00
Adam Johnson
5599ae4ccf
[python3] Bump to 3.10.7 (#27558)
* [python3] Make patch files contiguous.

When applying these back to the python3 repository and re-formatting,
the gap in patch file numbers requires annoying manual renaming. Debunk
that.

* [python3] Use patch files, not diffs.

Diffs require multiple steps to import into the python3 repository.
Debunk that. The patch format retains authorship information.

* [python3] Fix problems with conflicting patches.

Something modified in the static library patch was being used as a
context line in a later patch. How did this pass CI?

* [python3] Bump to 3.10.7.

* [python3] Fix Windows 7 patch.

* [python3] Back out trivial patch changes.

* [python3] Apply unconditional patches first.

* version things and stuff

* Bump Python tools to 3.10.7.
2022-11-18 11:53:08 -08:00
Christoph Neuhauser
cd4fcc1a22
[python3] Fix compilation of built-in modules on older versions of GCC (#27201) 2022-10-14 16:14:12 -07:00
sssooonnnggg
bc582aaa6f
[python3] build python3.dll for stable ABI (#26935) 2022-09-28 09:39:59 -07:00
Osyotr
e2213266cd
[python3] x64-linux-dynamic fixes (#25995)
* [python3] x64-linux-dynamic fixes

* Fix custom post-build checks

* Clarify comment.

Co-authored-by: Osyotr <8740768+Osyotr@users.noreply.github.com>
Co-authored-by: Billy O'Neal <bion@microsoft.com>
2022-08-04 13:49:06 -07:00
Kai Pastor
4e7bcf7a99
[python3] Fix wrapper, mark mingw unsupported (#25699)
* Fix python3 wrapper

* python3 is unsupported on mingw

* Update versions
2022-07-12 11:08:50 -07:00
Adam Johnson
c266859544
[python3] Update to 3.10.5. (#25105)
* [python3] Update to current

* update versions to current

* [vfap] update python3 to current

* update vcpkgTools.xml
2022-06-17 14:15:56 -07:00
Robert Schumacher
f78f4440df
[python3] Do not ensurepip. Provide venv instructions. (#24906)
* [python3] Bootstrap pip with ${CURRENT_INSTALLED_DIR}

* [python3] Disable ensurepip -- add venv usage instructions

Co-authored-by: Max Khon <fjoe@samodelkin.net>
2022-05-31 16:20:33 -07:00
Alexander Neumann
965961552d
[baseline] [python3] fix bz2(d) search on linux (#23525)
* fix python3 ci?

* add bz2d patch

* fix extra spaces

* version stuff
2022-03-14 01:09:48 -07:00
Adam Johnson
89ed56ebab
[python3] Update to Python 3.10.2. (#23156)
* [python3] Update to Python 3.10.2.

* Version nonsense

* Update Python tool to 3.10.2.

* [python3] Update version file

* [python3] Update versions again

Co-authored-by: Victor Romero <viromer@microsoft.com>
2022-03-11 11:36:11 -08:00
Jack·Boos·Yu
293faeebb1
[python3] Remove static libraries belonging to python3 executable (#23318)
* [python3] Remove static libraries belonging to python3 executable

* version

* Apply suggestions

* version
2022-03-02 15:00:38 -08:00
Kai Pastor
0707a17ecf
[liblzma] No debug postfix. Rewrite wrapper. (#22856)
* Restore upstream's DLL name

* Don't add debug postfix

* Decouple wrapper from config

* Don't inject Find module stuff into config

* Cleanup

* [skip actions] Trim lzmad and LibLZMA patching

* [skip actions] Fix CMAKE_DISABLE_FIND_PACKAGE_LibLZMA

* [skip actions] CI

* Update manifests

* Update versions

* Backfill LibLZMA::LibLZMA to CMake < 3.14

* Update versions

* Update versions
2022-02-28 10:25:31 -08:00
Max Khon
19712ff43a
[python3] Fix pkgconfig for debug Linux builds (#22529) 2022-02-07 21:58:30 -08:00
Robert Schumacher
c0d667ad6b
[python3][python2] Use MKDIR_P to create directories to avoid race conditions (#22902)
* [python3][python2] Use mkdir -p to create directories to avoid race conditions

* Revert "[vcpkg baseline][python3] Fix race during parallel install (#21734)"

This reverts commit a515872b1abf58b639bf8b15ab5fe23b62f25ac3.

# Conflicts:
#	ports/python3/vcpkg.json
#	versions/baseline.json
#	versions/p-/python3.json

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2022-02-04 01:17:37 -08:00
Max Khon
c662463c24
[python3] Install pkg-config files on Windows platforms (#22198) 2022-01-03 14:24:11 -08:00
Adam Johnson
6dbe00f6c4
[python3] Fix feature deprecated-win7-support. (#22090)
* [python3] Fix deprecated-win7-support patch.

* x-add-version
2021-12-20 11:33:29 -05:00
NancyLi1013
4b35e71e92
[python3] Support arm (#21528)
* [python3] Support arm on non Windows

* Support arm on all platform, add host dependency

* version

* [pybind11] Add supports

* version

Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com>
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
2021-12-16 22:20:11 -08:00
David Federman
48bba4f9c3
[python3] Fix SHA512 hash for v3.10.1 (#21979) 2021-12-10 20:48:52 -08:00
David Federman
ec316f8fac
[python3] Update to 3.10.1 (#21927) 2021-12-10 13:58:11 -08:00
Christoph Neuhauser
df9052e29f
[python3] Restrict string replacement to used build type (#21799) 2021-12-02 19:51:47 -08:00
Kai Pastor
a515872b1a
[vcpkg baseline][python3] Fix race during parallel install (#21734)
* Fix race in parallel install

* Update versions
2021-11-29 10:05:12 -08:00
Christian Rendina
56136f5f02
Python 3.10: fix deprecated win7 support patch (#21236)
* [PYTHON] Update windows7 patch

* [VCPKG] Updated version
2021-11-12 16:39:48 -08:00
autoantwort
d9b47f3626
[python3] no absolute paths (#21144) 2021-11-09 11:45:15 -08:00
Adam Johnson
15dab6a762
[python3] Upgrade to Python 3.10.0 (#20519)
* [python3] Update to Python 3.10.0rc2 (for testing).

* [python3] Revert trivial patch changes.

* [python3] Bump to 3.10.0 final.

* x-add-version

* update python tools to 3.10.0

* [ecm] Add patch from upstream for Python 3.10.

Remove this on the next release.

* x-add-version

* [python3] Add patch to fix static interpreter.

* x-add-version
2021-10-06 12:53:06 -07:00
Kai Pastor
2ed5383f7b
[vcpkg_configure_make] Standardize OPTIONS list item handling (#19540)
* Remove unused EXTRA_QUOTES

* Uniformly invoke 'configure'

* [libtasn1] Fix mingw build

* Unify prefix handling

* Revise install dir processing

* x-add-version

* Force libdir to lib (adopted from #19666)

* [skip actions] CI rebuild

* CR request: Put backslash before shell var

* CR request: Use vcpkg_list

* Update versions

* Fix python3 options

* Update versions

* Bump python port-version.

* CR request: Add comment about backslashes before prefix

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2021-09-30 23:58:36 -07:00