3 \1 ã @ sd d dl Z d dlmZ d dlmZ d dlmZmZ d dlT d dl m Z d dlmZ G dd „ d eƒZ dS ) é N)ÚCommand)Úget_platform)Úremove_treeÚensure_relative)Ú*)Úget_python_version)Úlogc @ s^ e Zd ZdZd%dddeƒ fd&d(d)d*d+d,d-g ZdddgZdddœZdd „ Zd!d"„ Z d#d$„ Z dS ).Ú bdist_dumbz"create a "dumb" built distributionú bdist-dir=Údú1temporary directory for creating the distributionz plat-name=Úpz;platform name to embed in generated filenames (default: %s)úformat=Úfú>archive format to create (tar, gztar, bztar, xztar, ztar, zip)ú keep-tempÚkz/keep the pseudo-installation tree around after z!creating the distribution archiveú dist-dir=ú-directory to put final built distributions inú skip-buildNú2skip rebuilding everything (for testing/debugging)Úrelativeú7build the archive using relative paths (default: false)úowner=Úuú@Owner name used when creating a tar file [default: current user]úgroup=ÚgúAGroup name used when creating a tar file [default: current group]ZgztarÚzip)ÚposixÚntc C s: d | _ d | _d | _d| _d | _d | _d| _d | _d | _d S )Nr ) Ú bdist_dirÚ plat_nameÚformatÚ keep_tempÚdist_dirÚ skip_buildr ÚownerÚgroup)Úself© r+ ú4/usr/lib64/python3.6/distutils/command/bdist_dumb.pyÚinitialize_options2 s zbdist_dumb.initialize_optionsc C sz | j d kr&| jdƒj}tjj|dƒ| _ | jd krfy| jtj | _W n" t k rd t dtj ƒ‚Y nX | jdddd ƒ d S ) NZbdistZdumbz@don't know how to create dumb built distributions on platform %sr&