ã“Re‡ ã @ ss d d l m Z d d l j j Z d d l Z d d l Z d d l m Z m Z m Z Gd d „ d e j ƒ Z d S)é )ÚlogN)ÚDistributionÚPathMetadataÚensure_directoryc @ s= e Z d Z d Z d d „ Z d d „ Z d d d „ Z d S) Úinstall_scriptsz;Do normal script install, plus any egg_info wrapper scriptsc C s t j j | ƒ d | _ d S)NF)Úorigr Úinitialize_optionsÚno_ep)Úself© r ú˜/builddir/build/BUILDROOT/alt-python35-setuptools-36.3.0-4.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/setuptools/command/install_scripts.pyr s z"install_scripts.initialize_optionsc C s` d d l j j } | j d ƒ | j j r> t j j | ƒ n g | _ | j rT d S| j d ƒ } t | j t | j | j ƒ | j | j ƒ } | j d ƒ } t | d d ƒ } | j d ƒ } t | d d ƒ } | j } | rð d } | j } | t j k r| g } | j ƒ } | j j ƒ j | ƒ } x- | j | | j ƒ ƒ D] } | j | Œ qEWd S) Nr Úegg_infoÚ build_scriptsÚ executableÚ bdist_wininstZ_is_runningFz python.exe)Úsetuptools.command.easy_installÚcommandÚeasy_installÚrun_commandÚdistributionÚscriptsr r ÚrunÚoutfilesr Úget_finalized_commandr Zegg_baser r Úegg_nameZegg_versionÚgetattrZScriptWriterZWindowsScriptWriterÚsysr ÚbestZcommand_spec_classÚ from_paramZget_argsZ as_headerÚwrite_script)r ÚeiZei_cmdÚdistZbs_cmdZ exec_paramZbw_cmdZ is_wininstÚwriterÚcmdÚargsr r r r s2 zinstall_scripts.runÚtc G s¯ d d l m } m } t j d | | j ƒ t j j | j | ƒ } | j j | ƒ | ƒ } | j s« t | ƒ t | d | ƒ } | j | ƒ | j ƒ | | d | ƒ d S)z1Write an executable file to the scripts directoryr )ÚchmodÚ current_umaskzInstalling %s script to %sÚwiÿ N)r r&