File: //usr/local/lib/python3.10/site-packages/setuptools/command/__pycache__/bdist_egg.cpython-310.pyc
o
��i�@ � @ s* d Z ddlmZmZ ddlmZ ddlmZ ddlZddl Z ddl
Z
ddlZddlZddl
mZmZ ddlmZ ddlmZ d d
lmZ ddlmZmZ dd
� Zdd� Zdd� Zdd� ZG dd� de�Ze�d� � �Z!dd� Z"dd� Z#dd� Z$ddd�Z%d d!� Z&d"d#� Z'd$d%� Z(g d&�Z) ' (d+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 C s t d�S )N�purelib)r � r r �G/usr/local/lib/python3.10/site-packages/setuptools/command/bdist_egg.py�_get_purelib � r c C s2 d| v rt j�| �d } | �d�r| d d� } | S )N�.r �modulei����)�os�path�splitext�endswith)�filenamer r r �strip_module s
r c c s8 � t �| �D ]\}}}|�� |�� |||fV qdS )zbDo os.walk in a reproducible way,
independent of indeterministic filesystem readdir order
N)r �walk�sort)�dir�base�dirs�filesr r r �sorted_walk"