-
Notifications
You must be signed in to change notification settings - Fork 38
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
Has anyone tried a Python 3.11 conda package build yet? #1632
Comments
I have not tried with python 3.11 yet.
|
Hi, Is there some workaround that can be done to successfully build pytraj? I'd hate to have to disable its installation! |
Update cython and recythonize the files? I haven't had a chance to try it out yet. |
Unfortunatelly I don't know how to do that (I'm not compiling from pytraj git repo, but from AmberTools23). To briefly describe what I've done:
Doesn't the cmake procedure cythonize the files with the available cython? |
Please:
- force re-cythonizing by updating scripts/base_setup.py to change
is_release from True to False
And continue to rebuild ambertools
Let me know if this works. I am on vacation so I don’t have a chance to
try.
Hai
|
Hi! I'm sorry to bother you on vacation! I tried as you suggested, but the same error
unfortunatelly arise... I checked the [ 79%] Building pytraj native library
sys.argv ['setup.py', 'build', '-b', '/opt/amber22_src/build/AmberTools/src/pytraj/CMakeFiles/python-build']
Original compiler envs
CXX = /opt/anaconda3/envs/p11/bin/g++
CC = /opt/anaconda3/envs/p11/bin/gcc
COMPILER =
use_pip = False, cpptraj_home =
compile_c_extension = True
2.0.6.dev0
use_prebuilt_cythonized_files = False
[ 82%] Built target sander_base_obj_omp
pytraj is inside AMBERHOME
using environment: CC=/opt/anaconda3/envs/p11/bin/gcc, CXX=/opt/anaconda3/envs/p11/bin/g++
using CC=/opt/anaconda3/envs/p11/bin/gcc, CXX=/opt/anaconda3/envs/p11/bin/g++
Final compiler envs
CXX = /opt/anaconda3/envs/p11/bin/g++
CC = /opt/anaconda3/envs/p11/bin/gcc
COMPILER =
install = True
set rpath to /opt/amber22_src/build/AmberTools/src/cpptraj/src
/opt/anaconda3/envs/p11/lib/python3.11/site-packages/setuptools/dist.py:755: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!
********************************************************************************
Usage of dash-separated 'description-file' will not be supported in future
versions. Please use the underscore name 'description_file' instead.
By 2023-Sep-26, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
opt = self.warn_dash_deprecation(opt, section)
running build
running build_py
copying pytraj/version.py -> /opt/amber22_src/build/AmberTools/src/pytraj/CMakeFiles/python-build/lib.linux-x86_64-cpython-311/pytraj
running build_ext
skipping 'pytraj/analysis/c_analysis/c_analysis.cpp' Cython extension (up-to-date)
skipping 'pytraj/analysis/c_action/actionlist.cpp' Cython extension (up-to-date)
skipping 'pytraj/analysis/c_action/c_action.cpp' Cython extension (up-to-date)
skipping 'pytraj/math/cpp_math.cpp' Cython extension (up-to-date)
skipping 'pytraj/topology/topology.cpp' Cython extension (up-to-date)
skipping 'pytraj/core/topology_objects.cpp' Cython extension (up-to-date)
skipping 'pytraj/core/coordinfo.cpp' Cython extension (up-to-date)
skipping 'pytraj/core/parameter_types.cpp' Cython extension (up-to-date)
skipping 'pytraj/core/c_dict.cpp' Cython extension (up-to-date)
skipping 'pytraj/core/c_options.cpp' Cython extension (up-to-date)
skipping 'pytraj/core/box.cpp' Cython extension (up-to-date)
skipping 'pytraj/core/c_core.cpp' Cython extension (up-to-date)
skipping 'pytraj/utils/cyutils.cpp' Cython extension (up-to-date)
skipping 'pytraj/datafiles/datafiles.cpp' Cython extension (up-to-date)
skipping 'pytraj/datasets/c_datasetlist.cpp' Cython extension (up-to-date)
skipping 'pytraj/datasets/c_datasets.cpp' Cython extension (up-to-date)
skipping 'pytraj/datasets/cast_dataset.cpp' Cython extension (up-to-date)
skipping 'pytraj/trajectory/frame.cpp' Cython extension (up-to-date)
skipping 'pytraj/trajectory/c_traj/c_trajout.cpp' Cython extension (up-to-date)
skipping 'pytraj/trajectory/c_traj/c_trajectory.cpp' Cython extension (up-to-date)
building 'pytraj.core.c_dict' extension |
Um, I will give this a try when I gave access to my laptop. Cheers.
|
On Fri, Jun 9, 2023 at 3:04 PM Hai Nguyen ***@***.***> wrote:
Um, I will give this a try when I gave access to my laptop. Cheers.
I don’t have a chance to try amber yet but the standalone pytraj compiled
fine with python 3.11 and cython 0.29.x
So I suggest to also delete all existing cythonized files .cpp in pytraj
and then build again.
And sorry for all the troubles.
Hai
… |
Just a quick update, deleting all the *.cpp files in the src/pytraj/pytraj directory worked fine with python3.11! (I also had scripts/base_setup.py with is_release setted to False) |
Great. Thanks.
|
I think we can close this case since the question is answered. #1632 (comment) Further discussions are happening in https://github.com/conda-forge/ambertools-feedstock |
Attempts to do this for AmberTools 23 are failing.
build log here: https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=700933&view=logs&j=9a864fd9-6c8f-52ca-79ce-2aa6dca1a1de&t=10fc5aa2-324e-5982-4c88-6b31fcab16b3)
PR here: conda-forge/ambertools-feedstock#113
The text was updated successfully, but these errors were encountered: