Skip to content

Commit

Permalink
trying to fix run on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
martin de la gorce committed Jul 13, 2023
1 parent 026fc2e commit 41b9a43
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ dependencies = [

[tool.setuptools]
package-data = {"deodr"= ["*.pyx", "*.pxd", "data/*.*", "data/**/*.*"]}
packages = ["deodr"]
32 changes: 32 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
"""Setup script for the DEODR project."""

import os
import re
from setuptools import setup, find_packages

from Cython.Build import cythonize

import numpy as np


extensions = "deodr/differentiable_renderer_cython.pyx"

my_modules = cythonize(extensions, annotate=True, language="c++")


with open(os.path.join(os.path.dirname(__file__), "deodr", "__init__.py")) as fp:
for line in fp:
m = re.search(r'^\s*__version__\s*=\s*([\'"])([^\'"]+)\1\s*$', line)
if m:
version = m.group(2)
break
else:
raise RuntimeError("Unable to find own __version__ string")
print(f"version = {version}")
setup(
version=version,
url="https://github.com/martinResearch/DEODR",
data_files=[("C++", ["C++/DifferentiableRenderer.h"])],
ext_modules=my_modules, # additional source file(s)),
include_dirs=[np.get_include()]
)

0 comments on commit 41b9a43

Please sign in to comment.