Skip to content

chore: patch and build freexl locally #5775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: development
Choose a base branch
from

Conversation

shun2wang
Copy link
Contributor

@shun2wang shun2wang commented Jan 10, 2025

This is a bit hacky but conan has no built-in local patching solution.

@boutinb @JorisGoosen Please clone my repo as a JASP organization repo and then we can maintain our own patched version of freexl.

TODO:

  • Build on Windows
  • Build on MacOS (help needs)
  • Build on Linux

@shun2wang shun2wang changed the title chore: patch and build freexl locally [WIP] chore: patch and build freexl locally Jan 10, 2025
@shun2wang shun2wang force-pushed the conan_recipe branch 3 times, most recently from 296ac83 to 4bc77ab Compare February 18, 2025 02:38
@JorisGoosen JorisGoosen self-requested a review February 20, 2025 12:49
@JorisGoosen
Copy link
Contributor

Ive cloned your repo with conan stuff to jasp-stats

@shun2wang
Copy link
Contributor Author

Great! I'm also tring to get ReadStat work with conan too, if done then we can put it into repo.

@shun2wang shun2wang changed the title [WIP] chore: patch and build freexl locally chore: patch and build freexl locally Mar 3, 2025
@shun2wang
Copy link
Contributor Author

shun2wang commented Mar 21, 2025

It's ready for review, for readStat I had pull a recipe PR for conan upstream: conan-io/conan-center-index#25181 But it's not ready for msvc now. I'm afraid we don't have to wait for it.

execute_process(
COMMAND_ECHO STDOUT
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
COMMAND
conan install ${CONAN_FILE_PATH} --output-folder=${CMAKE_BINARY_DIR}/conan_build
conan install ${CONAN_FILE_PATH} --output-folder=${CMAKE_BINARY_DIR}/_conan_build
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why _conan_build?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because I think all dependencies build dir should with "_" just like others.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is minor but for just for the uniformity...

@JorisGoosen
Copy link
Contributor

Did you now also implement macos and linux?

@JorisGoosen
Copy link
Contributor

As bruno points out windows users are most likely to be using excel, so we can probably also just merge this without it being fixed on macos and linux.
Im not on windows now but if this compiles etc im fine with this being merged.

Ive also double checked the jasp-stats/conan-recipes and it looks good to me.

I dont understand why you want to rename the _conan_build folder though?

Copy link
Contributor

@JorisGoosen JorisGoosen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending on the explanation for _conan_build

@shun2wang
Copy link
Contributor Author

I don't have a MacOS so I can't implement it but it is easy because just some cmake works.

on Linux people should clone and build freexl by self on local, @RensDofferhoff should do some work on flatpak buid env I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants