Skip to content
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

setup.py doesn't accept the --root=/stage/dir argument #1418

Open
yurivict opened this issue Oct 9, 2021 · 4 comments
Open

setup.py doesn't accept the --root=/stage/dir argument #1418

yurivict opened this issue Oct 9, 2021 · 4 comments

Comments

@yurivict
Copy link

yurivict commented Oct 9, 2021

Most python projects specify the stage directory through --root=/stage/dir argument. But setup.py from pyne fails:

  import imp
usage: setup.py [-h] [--clean [CLEAN]] [--user [USER]] [--egg-base EGG_BASE] [-D VAR] [--build-type BT] [--deps-root DEPS_ROOT] [--fast] [--slow] [-j J] [--hdf5 HDF5] [--moab [MOAB]]
                [--dagmc [DAGMC]] [--prefix PREFIX] [--build-dir BUILD_DIR] [--bootstrap] [--spatial_solvers] [--no_spatial_solvers]
                cmd
setup.py: error: unrecognized arguments: --root=/usr/ports/science/py-PyNE/work-py38/stage

How to install pyne into a stage directory then?

Version: 0.7.5
Python: 3.8

@welcome
Copy link

welcome bot commented Oct 9, 2021

Hi, and welcome to PyNE! 👋 Thanks for opening your first issue. We recommend that you include information such as the version of PyNE you're working with (eg, develop branch or a specific version), the platform you are operating on, the expected behavior, and the actual behavior you are bringing our attention to. The more deatil you provide, the better others in this community will be able to help you.

@gonuke
Copy link
Contributor

gonuke commented Oct 9, 2021

I'm not sure what you mean by a 'stage directory'. Do you want to install and use this from some custom location? Or do you want to temporarily install in a custom location and then move from that location to a final location?

@yurivict
Copy link
Author

yurivict commented Oct 9, 2021

Stage directory is where it is installed temporarily and then it is moved to ${PREFIX}.

So every package should be able to install itself into ${STAGEDIR}${PREFIX} as if it is installed into ${PREFIX}.

For this the install target has to accept 2 separate arguments: STAGEDIR and PREFIX. In Python projects this is usually achieved by supplying --root=${STAGEDIR}.

@ahnaf-tahmid-chowdhury
Copy link
Member

The current setup.py does not include the --root argument. I believe you should opt for the --build-dir instead. Our setup.py has been custom developed.

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

No branches or pull requests

3 participants