MMCT TEAM
Server IP : 103.191.208.50  /  Your IP : 216.73.216.53
Web Server : LiteSpeed
System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64
User : celkcksm ( 1031)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, popen, exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/../lib/python2.7/../rpm/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/../lib/python2.7/../rpm/macros.python
# Python specific macro definitions.
# To make use of these macros insert the following line into your spec file:
# %include %{_rpmconfigdir}/macros.python

# python main version
%define py_ver         %(echo `python -c "import sys; sys.stdout.write(sys.version[:3])"`)

# directories
%define py_prefix      %(echo `python -c "import sys; sys.stdout.write(sys.prefix)"`)
%define py_libdir      %{py_prefix}/lib/python%{py_ver}
%define py_incdir      /usr/include/python%{py_ver}
%define py_sitedir     %{py_libdir}/site-packages
%define py_dyndir      %{py_libdir}/lib-dynload

# pure python modules compilation
%define py_comp        python -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"

%define py_ocomp       python -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"

MMCT - 2023