Skip to content

Commit

Permalink
fix sdist
Browse files Browse the repository at this point in the history
  • Loading branch information
fzimmermann89 committed May 13, 2021
1 parent 3ea94b9 commit a7dc158
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
39 changes: 39 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
pyproject.toml
setup.cfg
setup.py
./idi/__init__.py
./idi/reconstruction/__init__.py
./idi/reconstruction/autocorrelate3.pyx
./idi/reconstruction/mkl_dfti.pxd
./idi/reconstruction/common.py
./idi/reconstruction/cpucor.py
./idi/reconstruction/cpucorrad.py
./idi/reconstruction/cpusimple.py
./idi/reconstruction/cucor.py
./idi/reconstruction/cucorrad.py
./idi/reconstruction/cusimple.py
./idi/reconstruction/ft.py
./idi/reconstruction/hitcor.py
./idi/reconstruction/hitcorrad.py
./idi/reconstruction/singleshotnorm.py
./idi/simulation/__init__.py
./idi/simulation/common.py
./idi/simulation/cpu.py
./idi/simulation/cuda.py
./idi/simulation/cutime.py
./idi/simulation/sim.cu
./idi/simulation/simobj.py
./idi/simulation/simple.py
./idi/simulation/simtime.cu
./idi/simulation/time.py
./idi/util/__init__.py
./idi/util/accum.py
./idi/util/datasetreader.py
./idi/util/filters.py
./idi/util/funchelper.py
./idi/util/h5util.py
./idi/util/poissondisk.py
./idi/util/random.py
./idi/util/submitmagic.py
scripts/idi_sim.py
scripts/idi_simrecon.py
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ requires-python = ">=3.6"
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools", "oldest-supported-numpy", "Cython", "mkl==2019; sys_platform != 'win32'", "mkl-include==2019; sys_platform != 'win32'", "mkl-devel; sys_platform == 'win32'"]

[tool]
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ def configuration():

sources = [join(srcdir, "reconstruction", "autocorrelate3.pyx")]
have_cython = True
except ImportError as e:
if not exists(sources[0]):
print('pyx missing')
raise FileNotFoundError
except (ImportError, FileNotFoundError) as e:
have_cython = False
sources = [join(srcdir, "reconstruction", "autocorrelate.c")]
if not exists(sources[0]):
Expand Down

0 comments on commit a7dc158

Please sign in to comment.