macadmins / installapplications

A tool for dynamically using installapplication
Apache License 2.0
285 stars 62 forks source link

WIP: Python3 compatbility #52

Closed MichalMMac closed 4 years ago

MichalMMac commented 5 years ago

Not tested. I did not manage to figure out how to import SystemConfiguration in python3 with py-objc yet.

Update:

I managed to install pyobjc-framework-SystemConfiguration for my MacPorts Python3 via PIP. installapplications.py now displays the help. Next step should probably be to build relocatable-python including necessary libraries and make installapplications.py use it. ~100 MB extra for our bootstrap package... yay.

LcTrKiD commented 5 years ago

Hi MichalMMac, You should use snake case instead of camel case for functions (and others) names, camel case is not pythonic.

MichalMMac commented 5 years ago

@LcTrKiD if you refer to camel case in gurl.py these are not my changes. I just merely took the up to date gurl.py from Munki and added it to this PR.

erikng commented 4 years ago

Closing this since I've made some pretty big changes to IAs and using relocatable python.