Remove Portable

Building portable removed in:
e3ab9024 ("Remove platform-specific installer stuff and ensure a build .whl wheel file can be built.", 2016-01-17)
This commit is contained in:
Chris Mayo 2021-12-30 19:27:04 +00:00
parent 3359c7364f
commit 2fa0016ae9
3 changed files with 4 additions and 12 deletions

1
.gitignore vendored
View file

@ -31,7 +31,6 @@ Changelog.linkchecker*
/doc/html/*.qch
/.achievements
/doc/i18n/locales/*/LC_MESSAGES/*.mo
/LinkChecker-*-portable.zip
/LinkChecker-*.exe
/LinkChecker.egg-info
/todo

View file

@ -46,7 +46,6 @@ Freeware = (
This is free software, and you are welcome to redistribute it under
certain conditions. Look at the file `LICENSE' within this distribution."""
)
Portable = configdata.portable
def normpath(path):
@ -364,7 +363,7 @@ def get_plugin_folders():
exist."""
folders = []
defaultfolder = os.path.join(get_user_data(), "plugins")
if not os.path.exists(defaultfolder) and not Portable:
if not os.path.exists(defaultfolder):
try:
make_userdir(defaultfolder)
except Exception as errmsg:
@ -390,9 +389,9 @@ def make_userdir(child):
def get_user_config():
"""Get the user configuration filename.
If the user configuration file does not exist, copy it from the initial
configuration file, but only if this is not a portable installation.
configuration file.
Returns path to user config file (which might not exist due to copy
failures or on portable systems).
failures).
@return configuration filename
@rtype string
"""
@ -405,7 +404,7 @@ def get_user_config():
if os.path.isfile(homedotfile)
else os.path.join(xdg_config_home, "linkchecker", "linkcheckerrc")
)
if os.path.isfile(initialconf) and not os.path.exists(userconf) and not Portable:
if os.path.isfile(initialconf) and not os.path.exists(userconf):
# copy the initial configuration to the user configuration
try:
make_userdir(userconf)

View file

@ -106,11 +106,6 @@ def get_release_date(for_sdist=False):
return release_date
def get_portable():
"""Return portable flag as string."""
return os.environ.get("LINKCHECKER_PORTABLE", "0")
class MySdist(sdist):
def run(self):
Path(RELEASE_DATE_FILE).write_text(get_release_date(for_sdist=True))
@ -258,7 +253,6 @@ class MyDistribution(Distribution):
cmd = "%s = %r" % (name, val)
data.append(cmd)
data.append('release_date = "%s"' % get_release_date())
data.append("portable = %s" % get_portable())
# write the config file
util.execute(
write_file,