�
���c�@ � �b � d Z ddlmZmZ ddlmZ ddlmZ ddlZddl Z ddl
Z
ddlZddlZddl
mZmZ ddlmZ ddlmZ d d
lmZ ddlmZmZ d� Zd
� Zd� Zd� Z G d� de� � Ze� d� � � � � Z!d� Z"d� Z#d� Z$ddd�Z%d� Z&d� Z'd� Z(g d�Z) d d�Z*dS )!z6setuptools.command.bdist_egg
Build .egg distributions� )�remove_tree�mkpath)�log)�CodeTypeN)�get_build_platform�Distribution)�Library)�Command� )�ensure_directory)�get_path�get_python_versionc � � t d� � S )N�purelib)r
� � �>/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py�_get_purelibr s � ��I���r c � � d| v r%t j � | � � d } | � d� � r
| d d� } | S )N�.r �modulei����)�os�path�splitext�endswith)�filenames r �strip_moduler sM � �
�h����7�#�#�H�-�-�a�0������"�"� !��C�R�C�=���Or c # � K � t j | � � D ]5\ }}}|� � � |� � � |||fV � �6dS )zbDo os.walk in a reproducible way,
independent of indeterministic filesystem readdir order
N)r �walk�sort)�dir�base�dirs�filess r �sorted_walkr% " |