Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib64 /
python2.7 /
site-packages /
numpy /
random /
Delete
Unzip
Name
Size
Permission
Date
Action
tests
[ DIR ]
drwxr-xr-x
2021-09-16 10:54
__init__.py
5
KB
-rw-r--r--
2013-04-07 01:04
__init__.pyc
5.39
KB
-rw-r--r--
2018-04-10 19:40
__init__.pyo
5.39
KB
-rw-r--r--
2018-04-10 19:40
info.py
4.95
KB
-rw-r--r--
2013-04-07 01:04
info.pyc
5.21
KB
-rw-r--r--
2018-04-10 19:40
info.pyo
5.21
KB
-rw-r--r--
2018-04-10 19:40
mtrand.so
483.06
KB
-rwxr-xr-x
2018-04-10 19:40
randomkit.h
5.25
KB
-rw-r--r--
2013-04-07 01:04
setup.py
2.16
KB
-rw-r--r--
2013-04-07 01:04
setup.pyc
2.4
KB
-rw-r--r--
2018-04-10 19:40
setup.pyo
2.4
KB
-rw-r--r--
2018-04-10 19:40
setupscons.py
1.35
KB
-rw-r--r--
2013-04-07 01:04
setupscons.pyc
1.46
KB
-rw-r--r--
2018-04-10 19:40
setupscons.pyo
1.46
KB
-rw-r--r--
2018-04-10 19:40
Save
Rename
from os.path import join, split, dirname import os import sys from distutils.dep_util import newer from distutils.msvccompiler import get_build_version as get_msvc_build_version def needs_mingw_ftime_workaround(): # We need the mingw workaround for _ftime if the msvc runtime version is # 7.1 or above and we build with mingw ... # ... but we can't easily detect compiler version outside distutils command # context, so we will need to detect in randomkit whether we build with gcc msver = get_msvc_build_version() if msver and msver >= 8: return True return False def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration, get_mathlibs config = Configuration('random',parent_package,top_path) def generate_libraries(ext, build_dir): config_cmd = config.get_config_cmd() libs = get_mathlibs() tc = testcode_wincrypt() if config_cmd.try_run(tc): libs.append('Advapi32') ext.libraries.extend(libs) return None defs = [] if needs_mingw_ftime_workaround(): defs.append(("NPY_NEEDS_MINGW_TIME_WORKAROUND", None)) libs = [] # Configure mtrand config.add_extension('mtrand', sources=[join('mtrand', x) for x in ['mtrand.c', 'randomkit.c', 'initarray.c', 'distributions.c']]+[generate_libraries], libraries=libs, depends = [join('mtrand','*.h'), join('mtrand','*.pyx'), join('mtrand','*.pxi'), ], define_macros = defs, ) config.add_data_files(('.', join('mtrand', 'randomkit.h'))) config.add_data_dir('tests') return config def testcode_wincrypt(): return """\ /* check to see if _WIN32 is defined */ int main(int argc, char *argv[]) { #ifdef _WIN32 return 0; #else return 1; #endif } """ if __name__ == '__main__': from numpy.distutils.core import setup setup(configuration=configuration)