@@ -38,7 +38,6 @@ def do_install(
38
38
pypi_mirror = None ,
39
39
system = False ,
40
40
ignore_pipfile = False ,
41
- skip_lock = False ,
42
41
requirementstxt = False ,
43
42
pre = False ,
44
43
deploy = False ,
@@ -72,7 +71,7 @@ def do_install(
72
71
if not project .pipfile_exists and not (package_args or dev ):
73
72
if not (ignore_pipfile or deploy ):
74
73
raise exceptions .PipfileNotFound (project .path_to ("Pipfile" ))
75
- elif (( skip_lock and deploy ) or ignore_pipfile ) and not project .lockfile_exists :
74
+ elif ignore_pipfile and not project .lockfile_exists :
76
75
raise exceptions .LockfileNotFound (project .path_to ("Pipfile.lock" ))
77
76
# Load the --pre settings from the Pipfile.
78
77
if not pre :
@@ -173,7 +172,6 @@ def do_install(
173
172
allow_global = system ,
174
173
ignore_pipfile = ignore_pipfile ,
175
174
system = system ,
176
- skip_lock = skip_lock ,
177
175
deploy = deploy ,
178
176
pre = pre ,
179
177
requirements_dir = requirements_directory ,
@@ -197,7 +195,6 @@ def do_install(
197
195
requirements_dir = requirements_directory ,
198
196
deploy = deploy ,
199
197
pypi_mirror = pypi_mirror ,
200
- skip_lock = skip_lock ,
201
198
extra_pip_args = extra_pip_args ,
202
199
categories = categories ,
203
200
)
@@ -300,7 +297,6 @@ def do_install(
300
297
requirements_dir = requirements_directory ,
301
298
deploy = deploy ,
302
299
pypi_mirror = pypi_mirror ,
303
- skip_lock = skip_lock ,
304
300
extra_pip_args = extra_pip_args ,
305
301
categories = categories ,
306
302
)
@@ -373,7 +369,6 @@ def do_install_dependencies(
373
369
bare = False ,
374
370
allow_global = False ,
375
371
ignore_hashes = False ,
376
- skip_lock = False ,
377
372
requirements_dir = None ,
378
373
pypi_mirror = None ,
379
374
extra_pip_args = None ,
@@ -395,20 +390,14 @@ def do_install_dependencies(
395
390
lockfile = None
396
391
pipfile = None
397
392
for category in categories :
398
- # Load the lockfile if it exists, or if dev_only is being used.
399
- if skip_lock :
400
- if not bare :
401
- click .secho ("Installing dependencies from Pipfile..." , bold = True )
402
- pipfile = project .get_pipfile_section (category )
403
- else :
404
- lockfile = project .get_or_create_lockfile (categories = categories )
405
- if not bare :
406
- click .secho (
407
- "Installing dependencies from Pipfile.lock ({})..." .format (
408
- lockfile ["_meta" ].get ("hash" , {}).get ("sha256" )[- 6 :]
409
- ),
410
- bold = True ,
411
- )
393
+ lockfile = project .get_or_create_lockfile (categories = categories )
394
+ if not bare :
395
+ click .secho (
396
+ "Installing dependencies from Pipfile.lock ({})..." .format (
397
+ lockfile ["_meta" ].get ("hash" , {}).get ("sha256" )[- 6 :]
398
+ ),
399
+ bold = True ,
400
+ )
412
401
dev = dev or dev_only
413
402
if lockfile :
414
403
deps_list = list (
@@ -419,12 +408,11 @@ def do_install_dependencies(
419
408
for req_name , specifier in pipfile .items ():
420
409
deps_list .append (Requirement .from_pipfile (req_name , specifier ))
421
410
failed_deps_queue = queue .Queue ()
422
- if skip_lock :
423
- ignore_hashes = True
411
+
424
412
editable_or_vcs_deps = [dep for dep in deps_list if (dep .editable or dep .vcs )]
425
413
normal_deps = [dep for dep in deps_list if not (dep .editable or dep .vcs )]
426
414
install_kwargs = {
427
- "no_deps" : not skip_lock ,
415
+ "no_deps" : True ,
428
416
"ignore_hashes" : ignore_hashes ,
429
417
"allow_global" : allow_global ,
430
418
"pypi_mirror" : pypi_mirror ,
@@ -676,7 +664,6 @@ def do_init(
676
664
dev_only = False ,
677
665
allow_global = False ,
678
666
ignore_pipfile = False ,
679
- skip_lock = False ,
680
667
system = False ,
681
668
deploy = False ,
682
669
pre = False ,
@@ -709,7 +696,7 @@ def do_init(
709
696
suffix = "-requirements" , prefix = "pipenv-"
710
697
)
711
698
# Write out the lockfile if it doesn't exist, but not if the Pipfile is being ignored
712
- if ( project .lockfile_exists and not ignore_pipfile ) and not skip_lock :
699
+ if project .lockfile_exists and not ignore_pipfile :
713
700
old_hash = project .get_lockfile_hash ()
714
701
new_hash = project .calculate_pipfile_hash ()
715
702
if new_hash != old_hash :
@@ -749,7 +736,7 @@ def do_init(
749
736
categories = categories ,
750
737
)
751
738
# Write out the lockfile if it doesn't exist.
752
- if not project .lockfile_exists and not skip_lock :
739
+ if not project .lockfile_exists :
753
740
# Unless we're in a virtualenv not managed by pipenv, abort if we're
754
741
# using the system's python.
755
742
if (system or allow_global ) and not (project .s .PIPENV_VIRTUALENV ):
@@ -778,7 +765,6 @@ def do_init(
778
765
dev = dev ,
779
766
dev_only = dev_only ,
780
767
allow_global = allow_global ,
781
- skip_lock = skip_lock ,
782
768
requirements_dir = requirements_dir ,
783
769
pypi_mirror = pypi_mirror ,
784
770
extra_pip_args = extra_pip_args ,
0 commit comments