[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
lib
/
python3.6
/
site-packages
/
setuptools
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 __pycache__
SET
[ DEL ]
📁 _vendor
SET
[ DEL ]
📁 command
SET
[ DEL ]
📁 extern
SET
[ DEL ]
📄 __init__.py
5,700 B
SET
[ EDIT ]
|
[ DEL ]
📄 archive_util.py
6,592 B
SET
[ EDIT ]
|
[ DEL ]
📄 build_meta.py
5,671 B
SET
[ EDIT ]
|
[ DEL ]
📄 config.py
18,006 B
SET
[ EDIT ]
|
[ DEL ]
📄 dep_util.py
935 B
SET
[ EDIT ]
|
[ DEL ]
📄 depends.py
5,837 B
SET
[ EDIT ]
|
[ DEL ]
📄 dist.py
42,613 B
SET
[ EDIT ]
|
[ DEL ]
📄 extension.py
1,729 B
SET
[ EDIT ]
|
[ DEL ]
📄 glibc.py
3,146 B
SET
[ EDIT ]
|
[ DEL ]
📄 glob.py
5,207 B
SET
[ EDIT ]
|
[ DEL ]
📄 launch.py
787 B
SET
[ EDIT ]
|
[ DEL ]
📄 lib2to3_ex.py
2,013 B
SET
[ EDIT ]
|
[ DEL ]
📄 monkey.py
5,261 B
SET
[ EDIT ]
|
[ DEL ]
📄 msvc.py
40,877 B
SET
[ EDIT ]
|
[ DEL ]
📄 namespaces.py
3,199 B
SET
[ EDIT ]
|
[ DEL ]
📄 package_index.py
40,320 B
SET
[ EDIT ]
|
[ DEL ]
📄 pep425tags.py
10,873 B
SET
[ EDIT ]
|
[ DEL ]
📄 py27compat.py
536 B
SET
[ EDIT ]
|
[ DEL ]
📄 py31compat.py
1,192 B
SET
[ EDIT ]
|
[ DEL ]
📄 py33compat.py
1,182 B
SET
[ EDIT ]
|
[ DEL ]
📄 py36compat.py
2,891 B
SET
[ EDIT ]
|
[ DEL ]
📄 sandbox.py
14,276 B
SET
[ EDIT ]
|
[ DEL ]
📄 script (dev).tmpl
201 B
SET
[ EDIT ]
|
[ DEL ]
📄 script.tmpl
138 B
SET
[ EDIT ]
|
[ DEL ]
📄 site-patch.py
2,307 B
SET
[ EDIT ]
|
[ DEL ]
📄 ssl_support.py
8,492 B
SET
[ EDIT ]
|
[ DEL ]
📄 unicode_utils.py
996 B
SET
[ EDIT ]
|
[ DEL ]
📄 version.py
144 B
SET
[ EDIT ]
|
[ DEL ]
📄 wheel.py
7,778 B
SET
[ EDIT ]
|
[ DEL ]
📄 windows_support.py
714 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: extension.py
import re import functools import distutils.core import distutils.errors import distutils.extension from setuptools.extern.six.moves import map from .monkey import get_unpatched def _have_cython(): """ Return True if Cython can be imported. """ cython_impl = 'Cython.Distutils.build_ext' try: # from (cython_impl) import build_ext __import__(cython_impl, fromlist=['build_ext']).build_ext return True except Exception: pass return False # for compatibility have_pyrex = _have_cython _Extension = get_unpatched(distutils.core.Extension) class Extension(_Extension): """Extension that uses '.c' files in place of '.pyx' files""" def __init__(self, name, sources, *args, **kw): # The *args is needed for compatibility as calls may use positional # arguments. py_limited_api may be set only via keyword. self.py_limited_api = kw.pop("py_limited_api", False) _Extension.__init__(self, name, sources, *args, **kw) def _convert_pyx_sources_to_lang(self): """ Replace sources with .pyx extensions to sources with the target language extension. This mechanism allows language authors to supply pre-converted sources but to prefer the .pyx sources. """ if _have_cython(): # the build has Cython, so allow it to compile the .pyx files return lang = self.language or '' target_ext = '.cpp' if lang.lower() == 'c++' else '.c' sub = functools.partial(re.sub, '.pyx$', target_ext) self.sources = list(map(sub, self.sources)) class Library(Extension): """Just like a regular Extension, but built as a library instead"""