cloudmatrix / esky

an auto-update framework for frozen python apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make data_files setup option work like cx freeze

timeyyy opened this issue · comments

basically i think its cleaner to do
(folder, folder)
(file, file)

than
(folder, glob(r'.\folder\*.*')
('', [file])

it is also consistent with py2exe and cxfreeze and requires users to not have to modify there setup files.

are we cool this implement this?

data_files is a standard distutils option [1] so I think we should remain consistent with whatever its base semantics are; adding additional conveniences sounds fine though. Do py2exe and cxfreeze use it in a non-distutils-standard way?

[1] https://docs.python.org/2/distutils/setupscript.html#installing-additional-files

actually it's only cx freeze that implements it the way i proposed.
its a bit different than standard distutils.
the concept of cxfreeze is a sequence of (to, from)

the concept of distutils is (directory, [files])

cx freeze uses the option name include_files,
mm i'm guessing passing the vales through like this
options={"bdist_esky": {"freezer_options": { "include_files": INCLUDES}}}
would work,

i guess the solution might be to add more documentation in the tutorial and wiki prompting the freezer_options feature

We could also support include_files in addition to data_files, changing the get_data_files method in esky/bdist_esky/init.py so that it looks for files in both places.

sounds good!

Thanks for reaching out. Unfortunately this project is no longer actively maintained, so I'm going to move it into archive mode:

https://rfk.id.au/blog/entry/archiving-open-source-projects/