HOME SHELL

NULLCOMMUNITY
 LiteSpeed
 Linux server2.poyrazhosting.com 3.10.0-962.3.2.lve1.5.77.el7.x86_64 #1 SMP Mon Dec 12 07:06:14 EST 2022 x86_64
 safemode : OFF
 MySQL: OFF | Perl: OFF | cURL: ON | WGet: OFF
  >  / lib / rpm /

Server Ip : 172.67.216.244




Filename/lib/rpm/macros.python
Size906
Permissionrw-r--r--
Owner
Create time08-Dec-2022 22:35
Last modified24-Nov-2021 09:47
Last accessed24-Nov-2021 09:47
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
# 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'):])"