Skip to content

Commit

Permalink
Merge pull request #312 from HapticX/dev
Browse files Browse the repository at this point in the history
Update python bindings
  • Loading branch information
Ethosa authored Jul 10, 2024
2 parents f1736ca + ec95b2f commit b225bae
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/language_bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
echo "Windows module"
echo "Win Module compiled with"
echo "nim c --app:lib --out:../bindings/python/happyx/happyx.pyd -d:useRealtimeGC --mm:arc --tlsEmulation:off --passL:-static --t:-flto --l:-flto --opt:speed --threads:off -d:release -d:httpx -d:export2py happyx"
echo "Linux arm64"
echo "Linux amd64"
nim c --app:lib --out:../bindings/python/happyxpy/happyx_unix_amd64.so -d:useRealtimeGC --mm:arc -t:-flto -l:-flto --opt:speed --threads:off -d:release -d:happyxDebug -x:off -a:off -d:beast -d:export2py happyx
echo "Linux arm64"
nim c --app:lib --cpu:arm64 --out:../bindings/python/happyxpy/happyx_unix_arm64.so -d:useRealtimeGC --mm:arc -t:-flto -l:-flto --opt:speed --threads:off -d:release -d:happyxDebug -x:off -a:off -d:beast -d:export2py happyx
Expand Down
4 changes: 3 additions & 1 deletion bindings/python/happyxpy/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
if _platform == 'windows':
import happyxpy.happyx_win as happyx
else:
if _cpu == 'arm64':
if _cpu == 'arm':
import happyxpy.happyx_unix_arm as happyx
elif _cpu in ['arm64', 'aarch64']:
import happyxpy.happyx_unix_arm64 as happyx
elif _cpu in ['amd64', 'x86_64']:
import happyxpy.happyx_unix_amd64 as happyx
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
packages=find_packages(),
include_package_data=True,
install_requires=['jinja2'],
py_modules=['happyx'],
py_modules=['happyxpy'],
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
Expand Down
2 changes: 1 addition & 1 deletion happyx.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

description = "Macro-oriented asynchronous web-framework written with ♥"
author = "HapticX"
version = "4.3.0"
version = "4.3.1"
license = "MIT"
srcDir = "src"
installExt = @["nim"]
Expand Down
2 changes: 1 addition & 1 deletion src/happyx/core/constants.nim
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const
# Framework version
HpxMajor* = 4
HpxMinor* = 3
HpxPatch* = 0
HpxPatch* = 1
HpxVersion* = $HpxMajor & "." & $HpxMinor & "." & $HpxPatch


Expand Down

0 comments on commit b225bae

Please sign in to comment.