Skip to content

Commit

Permalink
spec update
Browse files Browse the repository at this point in the history
  • Loading branch information
Dene33 committed Nov 27, 2023
1 parent 4f3fcf6 commit 77e50a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 55 deletions.
62 changes: 11 additions & 51 deletions build_specs/linux_mac_directory.spec
Original file line number Diff line number Diff line change
Expand Up @@ -21,78 +21,38 @@ def get_sitepackages(sitepackages: Path):

return datas


sys.path = sys.path[-3:]

print(sys.path)

sitepackages = Path.absolute(Path(sysconfig.get_paths()["purelib"]))

sitepackages_list = get_sitepackages(sitepackages)

shiny = sitepackages / "shiny"
# shinyswatch = sitepackages / "shinyswatch"
# yamldataclassconfig = sitepackages / "yamldataclassconfig"
# dataclasses_json = sitepackages / "dataclasses_json"
# marshmallow = sitepackages / "marshmallow"
langchain = sitepackages / "langchain"
# typing_inspect = sitepackages / "typing_inspect.py"
# mypy_extensions = sitepackages / "mypy_extensions.py"
# marshmallow_enum = sitepackages / "marshmallow_enum"
www = os.path.abspath("www")
data = os.path.abspath("data")

data_files = [
("app.py", "."),
("validators.py", "."),
("utils.py", "."),
("settings.yaml", "."),
("resources_paths.py", "."),
("prompts.py", "."),
("pages.py", "."),
("LICENSE.md", "."),
("classes.py", "."),
("__init__.py", "."),
("../app.py", "."),
("../validators.py", "."),
("../utils.py", "."),
("../settings.yaml", "."),
("../resources_paths.py", "."),
("../prompts.py", "."),
("../pages.py", "."),
("../LICENSE.md", "."),
("../classes.py", "."),
("../__init__.py", "."),
(data, "./data"),
(www, "./www"),
# (langchain, "./langchain"),
# (shiny, "./shiny"),
]

datas = data_files + sitepackages_list


# print(datas)

a = Analysis(
["story_generator.py"],
["../story_generator.py"],
pathex=[sitepackages],
binaries=[],
datas=datas,
# datas=[
# ("app.py", "."),
# ("validators.py", "."),
# ("utils.py", "."),
# ("settings.yaml", "."),
# ("resources_paths.py", "."),
# ("prompts.py", "."),
# ("pages.py", "."),
# ("LICENSE.md", "."),
# ("classes.py", "."),
# ("__init__.py", "."),
# ("data", "data"),
# ("www", "www"),
# # (sitepackages, "site-packages"),
# (langchain, "./langchain"),
# (shiny, "./shiny"),
# (shinyswatch, "./shinyswatch"),
# (yamldataclassconfig, "./yamldataclassconfig"),
# (dataclasses_json, "./dataclasses_json"),
# (marshmallow, "./marshmallow"),
# (typing_inspect, "."),
# (mypy_extensions, "."),
# (marshmallow_enum, "./marshmallow_enum"),
# ],
hiddenimports=[
"shiny",
"shinyswatch",
Expand Down
4 changes: 0 additions & 4 deletions build_specs/win_directory.spec
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ sitepackages = Path.absolute(Path(sysconfig.get_paths()["purelib"]))

sitepackages_list = get_sitepackages(sitepackages)

print(sitepackages_list)

shiny = sitepackages / "shiny"
langchain = sitepackages / "langchain"
www = os.path.abspath("www")
Expand All @@ -49,8 +47,6 @@ data_files = [

datas = data_files + sitepackages_list

current_path = os.getcwd()
print(current_path)

a = Analysis(
["../story_generator.py"],
Expand Down

0 comments on commit 77e50a6

Please sign in to comment.