★ wanayoo — archive 1999 https://github.com/arrayfire/arrayfire-python/pull/245Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change setup.py to optionally build binaries in source distribution #245

Open
wants to merge 2 commits into
base: master
from

Conversation

@syurkevi
Copy link
Contributor

@syurkevi syurkevi commented Dec 18, 2020

uses skbuild to optionally build the arrayfire library during python setup.py build/install
AF_BUILD_LOCAL_LIBS=1 environment variable used to perform the build. if it is not specified, setup.py will just install the .py files skipping the binary build step. The library has also been tweaked to prefer to load from the new local arrayfire/lib directory. If it doesn't exist the default system paths will be searched as in previous releases

load from local lib directory
loads local binaries if they are available
include(FetchContent)

set(CMAKE_MODULE_PATH_OLD ${CMAKE_MODULE_PATH})
set(CMAKE_MODULE_PATH "")

This comment has been minimized.

@9prady9

9prady9 Dec 18, 2020
Member

CMAKE_MODULE_PATH is empty by default. Is the intent to enable usage of this CMakeLists.txt from another CMake project ?

arrayfire/library.py Show resolved Hide resolved
setup.cfg Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
Co-authored-by: pradeep <pradeep@arrayfire.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.