Skip to content

Commit

Permalink
Change default build to be DISPATCH (#125)
Browse files Browse the repository at this point in the history
* add manifest

* update manifest

* exclude __pycache__ from sdist

* add loader path

* fix termination of cmake it

* change cmake default

* add descriptions pypi
  • Loading branch information
hmacdope authored Oct 24, 2022
1 parent 8b76669 commit 233e2f7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libdistopia/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ endforeach()

# default case
if(NOT DISTOPIA_MANUAL_SELECT_SIMD AND NOT DISTOPIA_DISPATCH AND NOT DISTOPIA_DISPATCH_MAX AND NOT DISTOPIA_DISPATCH_MANUAL)
message(STATUS "${Yellow}No CMake build options specified, defaulting to DISTOPIA_AUTO_SELECT_SIMD ${ColourReset}")
set(DISTOPIA_AUTO_SELECT_SIMD on)
message(STATUS "${Yellow}No CMake build options specified, defaulting to DISTOPIA_DISPATCH ${ColourReset}")
set(DISTOPIA_DISPATCH on)
endif()


Expand Down
4 changes: 3 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[options]
cmake_args = []
# cross compilation for dispatch is the default
# comment this out to enable other command line cmake flags to be specified
dispatch = True

[versioneer]
VCS = git
Expand Down
12 changes: 11 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@

from skbuild import setup
import versioneer
import os

description = "Fast distance calculations using explicitly vectorised SIMD"
try:
readme_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md")
with open(readme_file) as f:
long_description = f.read()
except ImportError:
long_description = description

setup(
name="distopia",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description="Fast distance calculations using explicitly vectorised SIMD",
description=description,
long_description=long_description,
author=['Hugo MacDermott-Opeskin', "Richard Gowers"],
license="MIT",
packages=['distopia'],
Expand Down

0 comments on commit 233e2f7

Please sign in to comment.