gregneagle / pycreateuserpkg

Python tool to create macOS packages that create user accounts
Other
292 stars 44 forks source link

Please Support macOS 10.15 #36

Closed kylejericson closed 5 years ago

kylejericson commented 5 years ago

Will you be working on getting this to work with 10.15?

gregneagle commented 5 years ago

Does it not?

kylejericson commented 5 years ago

I know that with 10.15 Python is be deprecated.

gregneagle commented 5 years ago

Yes, so you’ll need to install Python yourself.

Sent from my iPhone

On Jul 10, 2019, at 12:19 AM, kylejericson notifications@github.com wrote:

I know that with 10.15 Python is be deprecated.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

jelockwood commented 5 years ago

There seems to be two possible sides to this issue.

  1. Under Catalina using the pycreateuserpkg tool to create an Apple installer pkg
  2. Running the resulting Apple installer pkg

The first operation would typically be done infrequently on an admin Mac and the simple solution for this is to if needed install a copy of Python.

The second is potentially more difficult. If as I believe is the case the resulting installer pkg still needs to run a python script then it is likely to fail as there will be no Python interpreter to execute it. @gregneagle correct me if I am wrong about this :)

I am under the impression that Apple are encouraging developers who want to use a scripting language like Python to embed a runtime in the app - much like an increasing number of developers now include an embedded Java JRE in their apps.

This would require in this case Greg to do that if he so chose.

See these articles as possible guides - https://medium.com/python-pandemonium/embedding-a-python-application-in-macos-d866adfcaf94 http://joaoventura.net/blog/2016/embeddable-python-osx/

This tool looks relevant - https://pypi.org/project/py2app/

gregneagle commented 5 years ago

I will not be including a Python interpreter with pycreateuserpkg.

Also relevant: https://github.com/gregneagle/relocatable-python

kylejericson commented 5 years ago

Thanks I love this script so I would hate for it to die with 10.15.

On Wed, Jul 10, 2019 at 8:32 AM jelockwood notifications@github.com wrote:

There seems to be two possible sides to this issue.

  1. Under Catalina using the pycreateuserpkg tool to create an Apple installer pkg
  2. Running the resulting Apple installer pkg

The first operation would typically be done infrequently on an admin Mac and the simple solution for this is to if needed install a copy of Python.

The second is potentially more difficult. If as I believe is the case the resulting installer pkg still needs to run a python script then it is likely to fail as there will be no Python interpreter to execute it. @gregneagle https://github.com/gregneagle correct me if I am wrong about this :)

I am under the impression that Apple are encouraging developers who want to use a scripting language like Python to embed a runtime in the app - much like an increasing number of developers now include an embedded Java JRE in their apps.

This would require in this case Greg to do that if he so chose.

See these articles as possible guides -

https://medium.com/python-pandemonium/embedding-a-python-application-in-macos-d866adfcaf94 http://joaoventura.net/blog/2016/embeddable-python-osx/

This tool looks relevant - https://pypi.org/project/py2app/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gregneagle/pycreateuserpkg/issues/36?email_source=notifications&email_token=AKNV6TEYJXYLCRIY4QVNQJLP6XQGHA5CNFSM4H7JVQ6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZTO5XI#issuecomment-510062301, or mute the thread https://github.com/notifications/unsubscribe-auth/AKNV6TA5KGXJBYVEY4CPKSDP6XQGHANCNFSM4H7JVQ6A .

gregneagle commented 5 years ago

It won't die -- it will just have a new prerequisite if/when Apple removes Python. But Python 2.7.x is still available in all the Catalina betas so far.

jelockwood commented 5 years ago

@gregneagle @kylejericson Yeah. My understanding is that the current quite old version of Python will still be in Catalina but not in the one after Catalina. So the issue will arise but not yet.