summaryrefslogtreecommitdiff
path: root/Ports/python3
AgeCommit message (Collapse)Author
2021-05-09Ports: Add note about Python webbrowser patch upstreamingLinus Groh
2021-05-09Ports: Remove obsolete rlimit patch for PythonLinus Groh
Stubs for getrlimit()/setrlimit() have been added in 1c3c072.
2021-05-06Ports: Always set Python MACHDEP to version-less 'serenityos'Linus Groh
This is used for `sys.platform`, so it's important to get it right and ideally never change it again. When not cross-compiling this would append the `uname -r` version number, so let's explicitly override the generated value and set it to `serenityos`. Various other systems do this as well.
2021-05-06Ports: Remove Python printf fraction length patchLinus Groh
This functionality was implemented in f0fe449, making the patch unnecessary.
2021-05-06Ports: Register Browser in the Python webbrowser moduleLinus Groh
This makes the following work: >>> import webbrowser >>> webbrowser.open("http://serenityos.org") As well as this well-known easter egg: >>> import antigravity Pretty cool! :^)
2021-05-06Ports: Update Python to 3.9.5Linus Groh
Released on 2021-05-03. https://www.python.org/downloads/release/python-395/
2021-04-25Ports: Remove obsolete patches for PythonGunnar Beutner
This enables shared library support for Python and removes a few patches which are not necessary anymore now that we have dlfcn support.
2021-04-25Ports: Fix python3 package so linting script doesn't error out.Brian Gianforcaro
I have my environment configured to use https://pre-commit.com/. I guess the scripts were changed recently to lint all ports, and the python port was barfing on my system because of this bug.
2021-04-21Ports: Fix Python _crypt module linkage errorLinus Groh
we need to link against LibCrypt and subsubsequently LibCore (which LibCrypt does not link against itself due to a circular dependency issue). Not sure why this broke, it worked when I last updated the port.
2021-04-20Everywhere: Replace SERENITY_ROOT with SERENITY_SOURCE_DIRPanagiotis Vasilopoulos
2021-04-06Ports: Update Python to 3.9.4Linus Groh
Released on 2021-04-04 as a hotfix release superseding 3.9.3. https://www.python.org/downloads/release/python-394/
2021-04-01Ports: Build Python with --disable-ipv6Linus Groh
The addition of some IPv6 related things makes the configure script think we support it now. We don't.
2021-04-01Ports: Get Python's --build value from config.guessLinus Groh
2021-03-11Ports: Replace hardcoded Build/ paths with SERENITY_BUILD_DIRLinus Groh
Fixes #5710.
2021-02-21Ports: Update Python to 3.9.2Linus Groh
Released on 2021-02-19, no patch changes required. https://www.python.org/downloads/release/python-392/
2021-02-15Everywhere: Canonicalize 'ReadMe' capitalizationBen Wiederhake
We now follow a common capitalization throughout the project: ./Ports/openssh/ReadMe.md ./Ports/python3/patches/ReadMe.md ./Ports/ReadMe.md ./Meta/Lagom/ReadMe.md ./ReadMe.md This filename is still obvious enough to be seen immediately.
2021-02-02Ports: Build python3 with zlibLinus Groh
With the right include paths and linker flags, the _zlib module now builds & works. :^)
2021-02-02Ports: Build most python3 extension modules staticallyLinus Groh
Attempting to import C-extensions (lib-dynload/*.so) currently asserts in the dynamic loader - let's just build them statically instead for the time being. This makes a large number of modules available for use and the port a lot more functional! :^)
2021-01-23Ports: Tweak shebang of python3's package.shLinus Groh
This was missed in c702845.
2021-01-22Ports: Build python3 with libffiLinus Groh
This makes building the _ctypes module succeed. We still can't import it, but hey, that's progress! :^)
2021-01-19Ports: Add missing version.sh file to python3 portLinus Groh
I thought I had committed this, but it's .gitignore'd. Add an exception to Ports/.gitignore and add it for real this time. :^) Fixes #5008.
2021-01-18Ports: Add Python 3.9Linus Groh
The current version of our Python port (3.6.0) is over four years old by now and has (or had, I haven't actually tried it in a while) some limitations - time for an upgrade! The latest Python release is 3.9.1, so I used that version. It's a from-scratch port, no patches are taken from the previous port to ensure the smallest possible amount of code is patched. The BuildPython.sh script is useful so I kept it, with some tweaks. I added a short document explaining each patch to ease judging their underlying problem and necessity in the future. Compared to the old Python port, this one does support both the time module as well as threading (at least _thread) just fine. Importing modules written in C (everything in /usr/local/lib/python3.9/lib-dynload) currently asserts in Serenity's dynamic loader, which is unfortunate but probably solvable. Possibly related to #4642. I didn't try building Python statically, which might be one possibility to circumvent this issue. I also renamed the directory to just "python3", which is analogous to the Python 3.x package most Linux distributions provide. That implicitly means that we likely will not support multiple versions of the Python port at any given time, but again, neither do many other systems by default. Recent versions are usually backwards compatible anyway though, so having the latest shouldn't be a problem. On the other hand bumping the version should now be be as simple as updating the variables in version.sh, given that no new patches are required. These core modules to currently not build - I chose to ignore that for now rather than adding more patches to make them work somehow, which means they're fully unavailable. This should probably be fixed in Serenity itself. _ctypes, _decimal, _socket, mmap, resource, termios These optional modules requiring 3rd-party dependencies do currently not build (even with depends="ncurses openssl zlib"). Especially the absence of a readline port makes the REPL a bit painful to use. :^) _bz2, _curses, _curses_panel, _dbm, _gdbm, _hashlib, _lzma, _sqlite3, _ssl, _tkinter, _uuid, nis, ossaudiodev, readline, spwd, zlib I did some work on LibC and LibM beforehand to add at least stubs of missing required functions, it still encounters an ASSERT_NOT_REACHED() / TODO() every now and then, notably frexp() (implementations of that can be found online easily if you want to get that working right now). But then again that's our fault and not this port's. :^)