Opened 10 years ago

Closed 10 years ago

#41 closed defect (fixed)

setup.py's --home option does not get evaluated

Reported by: ftputiluser Owned by: schwa
Priority: minor Milestone: 2.4.2
Component: Library Version: 2.4.2
Keywords: installation script, setup.py, --home Cc: bugs@…

Description (last modified by schwa)

Installing with the option --home (which should put the library into the local user's home) get's ignored. There's something wrong with the distutils usage, sorry I can't provide a patch at the moment.

Attachments (2)

setup.py (4.0 KB) - added by schwa 10 years ago.
This setup.py should solve the problem.
ftputil-2.4.2b2.tar.gz (100.2 KB) - added by schwa 10 years ago.
This isn't the official beta 2 release; it's just for testing.

Download all attachments as: .zip

Change History (14)

comment:1 Changed 10 years ago by schwa

Keywords: installation script setup.py --user added; installscript removed
Status: newassigned

Thanks for the report! I try to look into that during the next week.

By the way: a report without a patch is usually better than no report at all. :-)

Stefan

comment:2 Changed 10 years ago by schwa

Keywords: --home added

Most probably the --home option is meant here.

comment:3 Changed 10 years ago by schwa

Description: modified (diff)
Keywords: --user removed
Summary: setup.py's --user option does not get evaluatedsetup.py's --home option does not get evaluated

Changed summary and description to use --home instead of --user.

Changed 10 years ago by schwa

Attachment: setup.py added

This setup.py should solve the problem.

comment:4 Changed 10 years ago by schwa

I guess changeset [892] should fix the problem. The setup.py attached to this ticket is identical to that committed. Please either substitute your setup.py with the attached one or update your working copy, and give me feedback whether that solves the problem for you.

comment:5 Changed 10 years ago by schwa

Milestone: 2.4.2

comment:6 Changed 10 years ago by ftputiluser

Works fine ... partially. Some documentation does not get installed.

norrell:ftputil a7p$ python ./setup.py install --user running install running build running build_py creating build creating build/lib creating build/lib/ftputil copying init.py -> build/lib/ftputil copying _mock_ftplib.py -> build/lib/ftputil copying _test_base.py -> build/lib/ftputil copying _test_ftp_error.py -> build/lib/ftputil copying _test_ftp_file.py -> build/lib/ftputil copying _test_ftp_path.py -> build/lib/ftputil copying _test_ftp_stat.py -> build/lib/ftputil copying _test_ftp_stat_cache.py -> build/lib/ftputil copying _test_ftp_sync.py -> build/lib/ftputil copying _test_ftputil.py -> build/lib/ftputil copying _test_public_servers.py -> build/lib/ftputil copying _test_python2_4.py -> build/lib/ftputil copying _test_real_ftp.py -> build/lib/ftputil copying _test_with_statement.py -> build/lib/ftputil copying find_deprecated_code.py -> build/lib/ftputil copying ftp_error.py -> build/lib/ftputil copying ftp_file.py -> build/lib/ftputil copying ftp_path.py -> build/lib/ftputil copying ftp_stat.py -> build/lib/ftputil copying ftp_stat_cache.py -> build/lib/ftputil copying ftp_sync.py -> build/lib/ftputil copying ftputil.py -> build/lib/ftputil copying ftputil_version.py -> build/lib/ftputil copying lrucache.py -> build/lib/ftputil running install_lib copying build/lib/ftputil/init.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/_mock_ftplib.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/_test_base.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/_test_ftp_error.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/_test_ftp_file.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/_test_ftp_path.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/_test_ftp_stat.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/_test_ftp_stat_cache.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/_test_ftp_sync.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/_test_ftputil.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/_test_public_servers.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/_test_python2_4.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/_test_real_ftp.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/_test_with_statement.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/find_deprecated_code.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/ftp_error.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/ftp_file.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/ftp_path.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/ftp_stat.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/ftp_stat_cache.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/ftp_sync.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/ftputil.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/ftputil_version.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil copying build/lib/ftputil/lrucache.py -> /Users/a7p/.local/lib/python2.6/site-packages/ftputil byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/init.py to init.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/_mock_ftplib.py to _mock_ftplib.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/_test_base.py to _test_base.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/_test_ftp_error.py to _test_ftp_error.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/_test_ftp_file.py to _test_ftp_file.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/_test_ftp_path.py to _test_ftp_path.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/_test_ftp_stat.py to _test_ftp_stat.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/_test_ftp_stat_cache.py to _test_ftp_stat_cache.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/_test_ftp_sync.py to _test_ftp_sync.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/_test_ftputil.py to _test_ftputil.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/_test_public_servers.py to _test_public_servers.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/_test_python2_4.py to _test_python2_4.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/_test_real_ftp.py to _test_real_ftp.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/_test_with_statement.py to _test_with_statement.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/find_deprecated_code.py to find_deprecated_code.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/ftp_error.py to ftp_error.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/ftp_file.py to ftp_file.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/ftp_path.py to ftp_path.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/ftp_stat.py to ftp_stat.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/ftp_stat_cache.py to ftp_stat_cache.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/ftp_sync.py to ftp_sync.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/ftputil.py to ftputil.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/ftputil_version.py to ftputil_version.pyc byte-compiling /Users/a7p/.local/lib/python2.6/site-packages/ftputil/lrucache.py to lrucache.pyc running install_data creating /Users/a7p/.local/doc copying ftputil.txt -> /Users/a7p/.local/doc error: can't copy 'ftputil.html': doesn't exist or not a regular file

comment:7 Changed 10 years ago by schwa

Oh yes, the repository doesn't contain the HTML files. They are generated during the packaging process with make dist and thereby put into the tar.gz archive.

I'll attach a tar.gz file to the ticket you can use.

Thanks for testing, by the way. :-)

Changed 10 years ago by schwa

Attachment: ftputil-2.4.2b2.tar.gz added

This isn't the official beta 2 release; it's just for testing.

comment:8 Changed 10 years ago by schwa

A tip: For program output, it's best to enclose it in triple curly braces, like this:

{{{
Some program output ...
}}}

So the line breaks are preserved.

You can read more about that at WikiFormatting.

comment:9 Changed 10 years ago by ftputiluser

thanks for coding ;).

Your the tar.gz is a plain html-file - but I manually created the required html and txt files - now everything works fine.

comment:10 Changed 10 years ago by schwa

No, it's a tar.gz archive. :) At least my browser's helper application opens it as an archive. Maybe you were mistaken by the dialog you got when you clicked on the filename.

Click on the filename above. On the page that appears then, click the link "downloading". Then your browser should ask you for a helper application to open it and/or offer you to save the file.

I'd appreciate it if you tested the installation from the archive as well.

comment:11 Changed 10 years ago by ftputiluser

sry, I save-as-ed the link above - which does not point directly to the file.

Everything is fine - I think, we can close this one.

comment:12 Changed 10 years ago by schwa

Resolution: fixed
Status: assignedclosed

Thanks for testing! :-)

Fixed in changeset [892].

Note: See TracTickets for help on using tickets.