Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/distutils/tests/setuptools_extension.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@sddlmZddlmZd�Zee�Zee�ZyddlmZWnek
rne	Z
nXeZ
defd��YZdefd��YZdd	l
Z
dd	lZdd	lZeej_eej_d
e
jkr�e
jd
_nd	S(i�(t	Extension(tDistributioncCsNx"|jjd�r$|j\}qW|jjd�sJtd|��n|S(s�Protect against re-patching the distutils if reloaded

    Also ensures that no other distutils extension monkeypatched the distutils
    first.
    t
setuptoolst	distutilss(distutils has already been patched by %r(t
__module__t
startswitht	__bases__tAssertionError(tcls((s:/sys/lib/python2.7/distutils/tests/setuptools_extension.pyt_get_unpatcheds(t	build_extRcBs eZdZesd�ZnRS(s7Extension that uses '.c' files in place of '.pyx' filescOsntj|||�g}xE|jD]:}|jd�rP|j|d d�q#|j|�q#W||_dS(Ns.pyxi�tc(t
_Extensiont__init__tsourcestendswithtappend(tselftargstkwRts((s:/sys/lib/python2.7/distutils/tests/setuptools_extension.pyR
"s(t__name__Rt__doc__t
have_pyrexR
(((s:/sys/lib/python2.7/distutils/tests/setuptools_extension.pyRstLibrarycBseZdZRS(s=Just like a regular Extension, but built as a library instead(RRR(((s:/sys/lib/python2.7/distutils/tests/setuptools_extension.pyR,sNsdistutils.command.build_ext(tdistutils.coreRRRt
_DistributionR	tPyrex.Distutils.build_extR
tImportErrortFalseRtTrueRtsysRtdistutils.extensiontcoret	extensiontmodules(((s:/sys/lib/python2.7/distutils/tests/setuptools_extension.pyt<module>s 	

$

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.