Hello! New joiner here with a question about build...
# daft-dev
p
Hello! New joiner here with a question about building daft I am working on packaging daft on conda-forge. The latest version of daft available on conda-forge is an ancient 0.4.6. This process is currently stalled for the following chain of reasons: • conda-forge requires packages to be built from source • building daft from source requires
bun
• conda-forge requires all build dependencies to installed from conda-forge •
bun
is not yet available on conda-forge (and building
bun
is harder than building daft, apparently) If I understand correctly,
bun
is only used for generating some assets for the
daft-dashboard
component. My question, to the daft developers - is there an easy way to build daft without the
daft-dashboard
feature, to relieve the dependency on
bun
and get daft released on conda-forge? Or are there any other solutions out there? (As an example, could the outputs of whatever
bun
generates possibly be included in the source release of daft on Github?) Thanks for the patience!
👀 1
s
Hi @Phillip Chiu, for a temporary solution, I think its fine to patch the source code such that it doesn't build the frontend of the dashboard by skipping the build step in
src/daft-dashboard/build.rs
. We have a flag to disable the build (
DAFT_DASHBOARD_SKIP_BUILD
), but that only works for development. Ideally, it would be nice if the package did contain the dashboard though. Bun is not a strict requirement to build it; we could use Node.js, which should be available on Conda.
Again, that would require patching
src/daft-dashboard/build.rs
to run
node install
instead of
bun install
If you need any help figuring that out, let us know. Also quick fyi, we deprecated the PyPi package name
getdaft
from v0.5.0 onwards. All releases now go to the
daft
PyPi package, so it would great if Conda matched it
p
Thanks @Srinivas Lade ! I think patching
src/daft-dashboard/build.rs
to run
node install
will indeed be the easiest path here! I will give that a shot. Regarding the package name - I believe the previous holder of the
daft
name on conda-forge has already given up the name for this project, but I will ensure this happens on this release or the next.
s
Awesome, looking forward to it!
p
Thanks for the tips @Srinivas Lade! I’ve implemented these changes on this PR which packages daft 0.6.1 for conda-forge. I appreciate your help getting this unblocked! Instead of modifying
build.rs
, I just run
npm install
and
npm run build
in the
src/daft-dashboard/frontend
directory prior to running the pip build. (My understanding is that on CI, the bun-created files are expected to be built already from some external process, and modifying
build.rs
does not have the intended effect.)
s
Thats awesome! Makes sense, I missed that.