Skip to content

Commit

Permalink
recursion issue in reqs. dmg builds but is faulty
Browse files Browse the repository at this point in the history
  • Loading branch information
norton120 committed Nov 26, 2024
1 parent ded116c commit 0b2f6dc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 22 deletions.
Binary file added installable_apps/assets/letta.icns
Binary file not shown.
8 changes: 3 additions & 5 deletions installable_apps/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
letta
setuptools==68.2.2 # letta pinned - and anything newer than 70 builds a broken wheel
letta==0.5.5 # this is also the version of the installer
pgserver~=0.1.4
py2app~=0.28.8
pystray
pillow
darkdetect
cutelog
#py2exe - not currently supporting 3.12 TODO upgrade or downgrade
darkdetect
38 changes: 21 additions & 17 deletions installable_apps/setup.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
from setuptools import setup, find_packages
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""

from setuptools import setup
# there is an import recursion leak somewhere upstream
# this hack gets us past it
import sys
sys.setrecursionlimit(5000)

APP = ['startup.py']
DATA_FILES = ['assets']
OPTIONS = {'iconfile': 'assets/letta.icns',
'includes': ['pgserver']}

setup(
name="letta_installable",
version="0.1.0",
packages=find_packages(),
install_requires=[
# Read requirements from requirements.txt
req.strip() for req in open("requirements.txt").readlines()
],
entry_points={
'console_scripts': [
'letta-startup=startup:main',
],
},
include_package_data=True,
package_data={
'': ['*.txt', '*.rst', '*.html', '*.css', '*.js'],
},
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS, 'plist': {'CFBundleName': 'Letta', 'CFBundleShortVersionString': '0.5.5', 'CFBundleVersion': '0.5.5'}},
setup_requires=['py2app'],
)

0 comments on commit 0b2f6dc

Please sign in to comment.