Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
build pex in github actions
  • Loading branch information
cs01 committed Aug 30, 2021
commit eeab99befc83fd62f0e5f48be71e7f9aa2bcae9a
3 changes: 2 additions & 1 deletion .github/workflows/build_executable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ jobs:
uses: actions/upload-artifact@v1
with:
name: gdbgui_${{ matrix.buildname }}
path: ./executable/${{ matrix.buildname }}
path: ./executable/${{ matrix.buildname }} |
./build/pex
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
This release is focused mostly on Python 3.9 compatibility and updating dependencies

- Support only Python 3.9 (though other Python versions may still work)
- Build gdbgui as a [pex](https://pypi.org/project/pex/) executable.
- These are executable Python environments that are self-contained with the exception of requiring a specific Python version installed in the environment running the executable. The pex executables should have better compatibility than PyInstaller executables, which sometimes have missing shared libraries depending on the operating system.
- Use only the threading async model for flask-socketio. No longer support gevent or eventlet.
- [bugfix] Catch exception if gdb used in tty window crashes instead of gdbgui crashing along with it
- Disable pagination in gdb tty by default. It can be turned back on with `set pagination off`.
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,5 @@ gdbgui is distributed through

## Contact

https://chadsmith.dev
chadsmith.software@gmail.com
22 changes: 22 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from pathlib import Path
from sys import platform

import hashlib
import nox # type: ignore


Expand Down Expand Up @@ -162,6 +163,7 @@ def build_executable_current_platform(session):
session.run("yarn", "build", external=True)
session.install(".", "PyInstaller>=4.5, <4.6")
session.run("python", "make_executable.py")
build_pex(session)


@nox.session(reuse_venv=True)
Expand All @@ -183,3 +185,23 @@ def build_executable_windows(session):
if not platform.startswith("win32"):
raise Exception(f"Unexpected platform {platform}")
session.notify("build_executable_current_platform")


@nox.session(python=python)
def build_pex(session):
"""Builds a pex of gdbgui"""
# NOTE: frontend must be built before running this
session.install("pex==2.1.45")
pex_path = Path("build/pex/gdbgui.pex")
session.run(
"pex",
".",
"-c",
"gdbgui",
"-o",
pex_path,
external=True,
)
checksum = hashlib.md5(pex_path.read_bytes()).hexdigest()
with open(f"{pex_path}.md5", "w+") as f:
f.write(checksum + "\n")