Skip to content

Commit dff80f4

Browse files
committed
Update to latest nx, Pynx -> PyNX
1 parent 724ae31 commit dff80f4

File tree

5 files changed

+27
-26
lines changed

5 files changed

+27
-26
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
python_build/*
22
!python_build/Makefile
33
build/
4-
Pynx.*
4+
PyNX.*

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2018 Pynx Authors
1+
Copyright 2018 PyNX Authors
22

33
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
44

Makefile

+8-7
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ include $(DEVKITPRO)/libnx/switch_rules
3131
#---------------------------------------------------------------------------------
3232
TARGET := $(notdir $(CURDIR))
3333
BUILD := build
34-
PY_BUILD := python_build
35-
DIST_DIR := $(BUILD)/$(TARGET)
36-
LIBDIR := $(DIST_DIR)/lib/python3.5
34+
PY_BUILD := python_build
35+
DIST_DIR := $(BUILD)/$(TARGET)
36+
LIBDIR := $(DIST_DIR)/lib/python3.5
3737
SOURCES := source
3838
DATA := data
3939
INCLUDES := include
4040
EXEFS_SRC := exefs_src
41-
APP_TITLEID := Pynx
42-
APP_AUTHOR := nx-python Authors, Python Software Foundation
43-
APP_VERSION := 0.2.0-alpha
41+
APP_TITLE := PyNX
42+
APP_AUTHOR := nx-python, Python Software Foundation
43+
APP_VERSION := 0.3.0-alpha
4444

4545
#---------------------------------------------------------------------------------
4646
# options for code generation
@@ -153,7 +153,8 @@ dist: $(BUILD)
153153
mkdir -p $(LIBDIR)
154154
unzip $(PY_BUILD)/nxpy3.5.3/python.zip -d $(LIBDIR)
155155
cp -r $(PY_BUILD)/nx-*/nx $(LIBDIR)
156-
cp $(OUTPUT).{nro,nacp} $(DIST_DIR)/
156+
cp $(OUTPUT).nro $(DIST_DIR)/
157+
cp $(OUTPUT).nacp $(DIST_DIR)/
157158
cp examples/hello.py $(DIST_DIR)/main.py
158159
cd $(BUILD) && zip -r $(TARGET)-$(APP_VERSION).zip $(TARGET)
159160

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Pynx
1+
# PyNX
22

3-
**nx-python** is an ecosystem for developing and running Python homebrew applications on the Nintendo Switch. **Pynx** serves as the entry point to running Python apps on your Switch. It is a homebrew app that contains a port of the CPython interpreter and allows you to run Python applications from the Homebrew Menu. Just name your application `main.py` and place it next to the `pynx.nro`, and it will be executed as soon as you launch Pynx from the Homebrew Menu. Currently, **only Python 2.7 is supported**.
3+
**nx-python** is an ecosystem for developing and running Python homebrew applications on the Nintendo Switch. **PyNX** serves as the entry point to running Python apps on your Switch. It is a homebrew app that contains a port of the CPython interpreter and allows you to run Python applications from the Homebrew Menu. Just name your application `main.py` and place it next to the `PyNX.nro`, and it will be executed as soon as you launch PyNX from the Homebrew Menu. Currently, **only Python 2.7 is supported**.
44

5-
## Running Pynx on your Switch
5+
## Running PyNX on your Switch
66

7-
You don't have to compile Pynx, you can [just grab a release build](https://github.com/nx-python/Pynx/releases) and copy the content of the ZIP archive into the `/switch` folder on your SD card. Pynx will appear on the Homebrew Menu.
7+
You don't have to compile PyNX, you can [just grab a release build](https://github.com/nx-python/PyNX/releases) and copy the content of the ZIP archive into the `/switch` folder on your SD card. PyNX will appear on the Homebrew Menu.
88

9-
## Compiling Pynx
9+
## Compiling PyNX
1010

11-
Compile Pynx using `make`. This will create a `Pynx` directory and build everything in there. Compiling might take a while, grab a coffee or whatever in the meantime if you like. Afterwards, create a distributable version using `make dist`. It will appear in the `build` directory.
11+
Compile PyNX using `make`. This will create a `PyNX` directory and build everything in there. Compiling might take a while, grab a coffee or whatever in the meantime if you like. Afterwards, create a distributable version using `make dist`. It will appear in the `build` directory.
1212

1313
## Having an issue?
1414

15-
If you encounter a problem, make sure to [join our Discord](https://discord.gg/5Ga2Whf) and tell us about it, or, alternatively, you can use GitHub's [issue tracker](https://github.com/nx-python/Pynx/issues) to report an issue.
15+
If you encounter a problem, make sure to [join our Discord](https://discord.gg/5Ga2Whf) and tell us about it, or, alternatively, you can use GitHub's [issue tracker](https://github.com/nx-python/PyNX/issues) to report an issue.

python_build/Makefile

+10-10
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ PYDIR := Python-$(PYVERS)
5050
PYLINK := https://www.python.org/ftp/python/$(PYVERS)/Python-$(PYVERS).tgz
5151
PYFILE := py.tgz
5252
_NXFILE := _nx.zip
53-
_NX_VERSION := 174dfd099fcdb6dab8e521a2816e15f638de0436
54-
NXPKGFILE := nxpkg.zip
55-
NXPKG_VERSION := fe22f98eed557c0efadd2a52d2b0542ef1d246c1
53+
_NXVERS := 174dfd099fcdb6dab8e521a2816e15f638de0436
54+
NXFILE := nx.zip
55+
NXVERS := c1069b999d54bf72abce8d993479ea8dc53af45b
5656

5757
.PHONY: all clean
5858

@@ -76,12 +76,12 @@ distfPY: linkPY
7676
linkPY: soospatchPY
7777
cd $(PYDIR) && make $(MAKEFLAGS) LIBRARY="$(ANAME)" LDLIBRARY="$(ANAME)" $(ANAME) && cd .. && cp $(PYDIR)/$(ANAME) . && touch linkPY
7878

79-
clone_NX:
80-
wget -O $(_NXFILE) "https://github.com/nx-python/_nx/archive/$(_NX_VERSION).zip"
81-
wget -O $(NXPKGFILE) "https://github.com/nx-python/nx/archive/$(NXPKG_VERSION).zip"
79+
cloneNX:
80+
wget -O $(_NXFILE) "https://github.com/nx-python/_nx/archive/$(_NXVERS).zip"
81+
wget -O $(NXFILE) "https://github.com/nx-python/nx/archive/$(NXVERS).zip"
8282
unzip -o $(_NXFILE)
83-
unzip -o $(NXPKGFILE)
84-
touch clone_NX
83+
unzip -o $(NXFILE)
84+
touch cloneNX
8585

8686
soospatchPY: compilePY
8787
cp $(PYCONFIG_DIR)/pyconfig.h $(PYDIR)/
@@ -105,7 +105,7 @@ soospatchPY: compilePY
105105
compilePY: extractedPY patchPY
106106
cd $(PYDIR) && ./configure CC="$(CC)" CXX="$(CXX)" AS="$(AS)" AR="$(AR)" OBJCOPY="$(OBJCOPY)" STRIP="$(STRIP)" NM="$(NM)" RANLIB="$(RANLIB)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" ASFLAGS="$(ASFLAGS)" LDFLAGS="$(LDFLAGS)" CONFIG_SITE="config.site" --disable-shared --without-threads --without-doc-strings --without-signal-module --disable-ipv6 --host=aarch64-none-elf --build=`./config.guess` && cd .. && touch compilePY
107107

108-
patchPY: clone_NX
108+
patchPY: cloneNX
109109
cp $(PYDIR)/configure $(PYDIR)/configure_old
110110
cat $(PYDIR)/configure_old | sed 's/ \*\-\*\-linux\*)/ \*\-\*\-linux\*\|aarch64\-none\-elf)/g' >$(PYDIR)/configure
111111
echo ac_cv_file__dev_ptmx=no >$(PYDIR)/config.site
@@ -124,4 +124,4 @@ $(PYFILE):
124124
wget -O "$(PYFILE)" "$(PYLINK)" || curl -Lo "$(PYFILE)" "$(PYLINK)"
125125

126126
clean:
127-
@rm -rf $(PYDIR) $(PYFILE) $(_NXFILE) $(NXPKGFILE) patchPY extractedPY compilePY linkPY distfPY soospatchPY clone_NX _nx-* nx-* libpython*.a
127+
@rm -rf $(PYDIR) $(PYFILE) $(_NXFILE) $(NXFILE) patchPY extractedPY compilePY linkPY distfPY soospatchPY cloneNX _nx-* nx-* libpython*.a

0 commit comments

Comments
 (0)