~sschwarzer/ftputil#41: 
setup.py's --home option does not get evaluated

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.

Status
RESOLVED FIXED
Submitter
ftputiluser (unverified)
Assigned to
No-one
Submitted
15 years ago
Updated
15 years ago
Labels
bug library

schwa (unverified) 15 years ago · edit

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

schwa (unverified) 14 years ago · edit

Most probably the --home option is meant here.

schwa (unverified) 14 years ago · edit

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

schwa (unverified) 14 years ago · edit

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.

ftputiluser (unverified) 14 years ago · edit

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

schwa (unverified) 14 years ago · edit

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. :-)

schwa (unverified) 14 years ago · edit

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.

ftputiluser (unverified) 14 years ago · edit

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.

schwa (unverified) 14 years ago · edit

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.

ftputiluser (unverified) 14 years ago · edit

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.

schwa (unverified) 14 years ago · edit

Thanks for testing! :-)

Fixed in changeset 892.

Register here or Log in to comment, or comment via email.