HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/relenv/build/__pycache__/darwin.cpython-310.pyc
o

�N�g��	@s:dZddlZddlmZmZmZddlmZmZmZm	Z	m
Z
eeZdd�Zd	d
�Z
e
jdedd
�Zejdedddd�d�ejdddddd�d�ejde	ddddd �d!�ejd"e
gd#�d$d%ejd&d �d'�ejd(ed"gd)�ejd*d+d,�Ze
jded-�ejd.d/d,�Ze
jded-�ejd0d1d,�Ze
jded-�dS)2z
The darwin build process.
�N�)�arches�DARWIN�MACOS_DEVELOPMENT_TARGET�)�runcmd�finalize�
build_openssl�build_sqlite�buildscCsTd|d<ddg}d�|�j|jd�|d<t|d<gd	�}d�|�j|jd�|d
<dS)z�
    Make sure we have the correct environment variables set.

    :param env: The environment dictionary
    :type env: dict
    :param dirs: The working directories
    :type dirs: ``relenv.build.common.Dirs``
    Zclang�CCz-Wl,-rpath,{prefix}/lib�-L{prefix}/lib� )�prefix�LDFLAGSZMACOSX_DEPLOYMENT_TARGET)r
z-I{prefix}/includez-I{prefix}/include/readline�CFLAGSN)�join�formatrr)�env�dirs�ldflagsZcflags�r�G/opt/saltstack/salt/lib/python3.10/site-packages/relenv/build/darwin.py�populate_envs	�rcCs�dj|j|dd�|d<tddd�|j�d�|j�dd	g|||d
�t�dd��}|�d
tj�|�d�Wd�n1s?wYtgd�|||d
�tddg|||d
�tddg|||d
�dS)a
    Run the commands to build Python.

    :param env: The environment dictionary
    :type env: dict
    :param dirs: The working directories
    :type dirs: ``relenv.build.common.Dirs``
    :param logfp: A handle for the log file
    :type logfp: file
    z!-Wl,-rpath,{prefix}/lib {ldflags}r)rrz./configurez-vz--prefix={}z--with-openssl={}z--enable-optimizationsz--disable-test-modules)r�stderr�stdout�
Modules/Setupza+rz$*disabled*
_tkinter
nsl
ncurses
nis
N)Zsedzs/#zlib/zlib/grZmakez-j8�install)rrr�io�open�seek�SEEK_END�write)rrZlogfp�fprrr�build_python&s0

�

��
��r$�darwinz3.10.16)r�version�opensslz_https://github.com/openssl/openssl/releases/download/openssl-{version}/openssl-{version}.tar.gzz3.2.4Z(2247802a1193c0f8eb41c870e8de45a2241422d5)�urlr&�checksum)�
build_func�download�XZz)http://tukaani.org/xz/xz-{version}.tar.gzz6https://woz.io/relenv/dependencies/xz-{version}.tar.gzz5.6.2Z(0d6b10e4628fe08e19293c65e8dbcaade084a083)�fallback_urlr(r&r))r+�SQLitez8https://sqlite.org/2024/sqlite-autoconf-{version}.tar.gzzChttps://woz.io/relenv/dependencies/sqlite-autoconf-{version}.tar.gzZ3460100Z(1fdbada080f3285ac864c314bfbfc581b13e804b)r(r-r&r))�namer*r+�python)r'r,r.zChttps://www.python.org/ftp/python/{version}/Python-{version}.tar.xzz:https://woz.io/relenv/dependencies/Python-{version}.tar.gzZ(401e6a504a956c8f0aab76c4f3ad9df601a83eb1)r*�wait_onr+zrelenv-finalize)r*r1z3.11.11Z(acf539109b024d3c5f1fc63d6e7f08cd294ba56d)r&r))Zbuilderz3.12.9Z(465d8a664e63dc5aa1f0d90cd1d0000a970ee2fbz3.13.2Z(da39a3ee5e6b4b0d3255bfef95601890afd80709)�__doc__r�commonrrrrrr	r
rZARCHESrr$�add�buildr&�copyrrrr�<module>sz%��
��
���������