简体   繁体   中英

Is there a way to create pkg for python app on mac?

I search around, still not sure if I can do it using python setup.py install ...

Any help will be appreciated. Thanks.

I want to package everything I made by python into a pkg or dog file, then this pkg file can be installed to other machines.

Yes, you can use the distutils module to create a Python package. You can then use

python setup.py install

or

python setup.py build

to install/build the package.

Because Mac OS X is Unix-based, modules will install/build just like on Unix .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM