Skip to content

Commit

Permalink
Reusing setup.py for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurelien Besnier committed Jan 25, 2024
1 parent 8883a98 commit b623182
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
5 changes: 4 additions & 1 deletion pyproject.toml → pyproject.toml.bak
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ dynamic = ["version", "readme"]
version = {attr = "openalea.phenomenal.__version__"}
readme = {file = ["README.md"]}

[options.package_data]
binaries = ["**/*.so"]

[tool.setuptools.packages.find]
where = ["src"] # list of folders that contain the packages (["."] by default)
include = ["openalea.phenomenal*"] # package names should match these glob patterns (["*"] by default)
include = ["openalea.phenomenal*", "**/*.so"] # package names should match these glob patterns (["*"] by default)
exclude = ["test*"] # exclude packages matching these glob patterns (empty by default)
namespaces = true # to disable scanning PEP 420 namespaces (true by default)
37 changes: 35 additions & 2 deletions setup.py.bak → setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,17 @@
# ==============================================================================
import numpy
from Cython.Build import cythonize
from setuptools import setup, Extension
from setuptools import setup, find_namespace_packages, Extension
# ==============================================================================

namespace = "openalea"
pkg_root_dir = 'src'
packages = find_namespace_packages(where='src', include=['openalea', 'openalea.*'])
top_pkgs = [pkg for pkg in packages if len(pkg.split('.')) <= 2]
package_dir = dict([('', pkg_root_dir)] +
[(pkg, pkg_root_dir + "/" + pkg.replace('.', '/'))
for pkg in top_pkgs])


extentions = [
Extension('openalea.phenomenal.segmentation._c_skeleton',
Expand All @@ -37,10 +45,35 @@

setup(
name="openalea.phenomenal",
version="1.9.1",
description="",
long_description="",

author="* Simon Artzet\n"
"* Christian Fournier\n"
"* Mielewczik Michael\n"
"* Brichet Nicolas\n"
"* Chopard Jerome\n"
"* Christophe Pradal\n",

author_email="[email protected]",
maintainer="Simon Artzet",
maintainer_email="[email protected]",

url="https://github.com/openalea/phenomenal",
license="Cecill-C",
keywords='',

# package installation
packages=packages,
package_dir=package_dir,
zip_safe=False,
ext_modules=cythonize(extentions),

entry_points={
"wralea": ["openalea.phenomenal = openalea.phenomenal_wralea", ],
},

# See MANIFEST.in
include_package_data=True,
)
)

0 comments on commit b623182

Please sign in to comment.