�
㦧b � � � d dl Z d dlZd� ZdS )� Nc �z �� g }| � � � � d� � D ]o��� dt j j � � }|� �� � |� �fd�t j |� � D � � � � �pd�
t |� � � � S )z$Run find_packages the way we intend.�
�.c � �� g | ] }��d |����
S )r � )�.0�f�pkgs ��2/usr/lib/python3/dist-packages/pbr/find_package.py�
<listcomp>z'smart_find_packages.<locals>.<listcomp> s: �� � F� F� F�� %(�C�C���+� F� F� F� )�strip�split�replace�os�path�sep�append�extend�
setuptools�
find_packages�join�set)�package_list�packages�pkg_pathr
s @r �smart_find_packagesr s� �� ��H��!�!�#�#�)�)�$�/�/� G� G���;�;�s�B�G�K�0�0������������ F� F� F� F�",�":�8�"D�"D�F� F� F� G� G� G� G��9�9�S��]�]�#�#�#r
)r r r r r
r �<module>r s5 ��
� � � � � � � �$� $� $� $� $r
|