LouisDesdoigts / dLux

Differentiable optical models as parameterised neural networks in Jax using Zodiax
https://louisdesdoigts.github.io/dLux/
BSD 3-Clause "New" or "Revised" License
43 stars 6 forks source link

pyproject.toml fixes #250

Closed benjaminpope closed 9 months ago

benjaminpope commented 9 months ago

running

pip install .

locally gives a large error output; I think we need to update pyproject.toml

Processing /Users/benjaminpope/code/dLux
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [16 lines of output]
      /private/var/folders/q3/wlh9qxyn1nxdm7v7l30qryf00000gn/T/pip-build-env-8th_ts7n/overlay/lib/python3.11/site-packages/setuptools/config/expand.py:134: SetuptoolsWarning: File '/Users/benjaminpope/code/dLux/LICENSE' cannot be found
        return '\n'.join(
      error: Multiple top-level packages discovered in a flat-layout: ['site', 'dLux', 'notebooks'].

      To avoid accidental inclusion of unwanted files or directories,
      setuptools will not proceed with this build.

      If you are trying to create a single distribution with multiple packages
      on purpose, you should not rely on automatic discovery.
      Instead, consider the following options:

      1. set up custom discovery (`find` directive with `include` or `exclude`)
      2. use a `src-layout`
      3. explicitly set `py_modules` or `packages` with a list of names

      To find more information, look for "package discovery" on setuptools docs.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
LouisDesdoigts commented 9 months ago

Fixed with #246