Skip to content

Commit

Permalink
Revert "Rm and see what happens"
Browse files Browse the repository at this point in the history
This reverts commit 6f39374.
  • Loading branch information
juliannguyen4 committed Dec 9, 2024
1 parent f1ab80c commit 2bab556
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
WINDOWS = 'Windows' in PLATFORM

CWD = os.path.abspath(os.path.dirname(__file__))
STATIC_SSL = os.getenv('STATIC_SSL')
SSL_LIB_PATH = os.getenv('SSL_LIB_PATH')
# COVERAGE environment variable only meant for CI/CD workflow to generate C coverage data
# Not for developers to use, unless you know what the workflow is doing!
COVERAGE = os.getenv('COVERAGE')
Expand Down Expand Up @@ -119,6 +121,13 @@
# STATIC SSL LINKING BUILD SETTINGS
################################################################################

if STATIC_SSL:
extra_objects.extend(
[SSL_LIB_PATH + 'libssl.a', SSL_LIB_PATH + 'libcrypto.a'])
libraries.remove('ssl')
libraries.remove('crypto')
library_dirs.remove('/usr/local/opt/openssl/lib')

################################################################################
# PLATFORM SPECIFIC BUILD SETTINGS
################################################################################
Expand Down Expand Up @@ -172,6 +181,9 @@
# Needed for linking the Python client with the C client
extra_objects.append(AEROSPIKE_C_TARGET + "/vs/x64/Release/aerospike.lib")

os.putenv('CPATH', ':'.join(include_dirs))
os.environ['CPATH'] = ':'.join(include_dirs)

################################################################################
# SETUP
################################################################################
Expand Down

0 comments on commit 2bab556

Please sign in to comment.